Skip to content

Commit

Permalink
chore(github): clean up bd-fe; add backstop summary to continue-on-er…
Browse files Browse the repository at this point in the history
…ror comment body
  • Loading branch information
dgrebb committed Sep 20, 2023
1 parent c60e2ad commit cc91ed1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/bd-fe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ jobs:
run: |
echo "RELEASE_NAME=stg-${name/\//-}" >> $GITHUB_ENV
echo "DIST=$(date +%y%m%d-%H%M%S)" >> $GITHUB_ENV
echo "RELEASE_NAME=stg-${name/\//-}" >> "$GITHUB_OUTPUT"
echo "DIST=$(date +%y%m%d-%H%M%S)" >> "$GITHUB_OUTPUT"
- name: ✍ Summarize
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test-backstop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,17 @@ jobs:
- name: 👀 Running Visual Regression
id: backstop
continue-on-error: true
run: cd _ci/backstop && ENV=$DEPLOY_ENV npm run test.gh
run: |
cd _ci/backstop && ENV=$DEPLOY_ENV npm run test.gh
FAIL_TABLE=$(./_utils/parse-report.sh)
echo "ERROR_COMMENT_BODY=$FAIL_TABLE" >> $GITHUB_ENV
- name: continue-on-error Comment
uses: dgrebb/continue-on-error-comment@feature/change-signature
with:
repo-token: ${{ secrets.GH_WORKFLOW_TOKEN }}
outcome: ${{ steps.backstop.outcome }}
test-id: '🙈 BaclstpJS'
test-id: "## 🙈 BaclstpJS\n\n### Failing Tests\n${{ env.ERROR_COMMENT_BODY }}"

- name: ⬆ Uploading Test Report
if: always()
Expand Down

0 comments on commit cc91ed1

Please sign in to comment.