Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrebb committed Jan 15, 2024
1 parent 3a375a0 commit 1faa5e7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/backstop-sanity-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Backstop Sanity Tests
name: Backstop Sanity Test Checks

on:
workflow_dispatch:
Expand Down Expand Up @@ -46,15 +46,17 @@ jobs:
<(jq 'walk(if type == "object" then with_entries(.value |= if type == "object" or type == "array" then . else "" end) else . end)' test/configs/backstop_data/bitmaps_test/**/report.json))
echo "PUPPETEER_TEST_RESULT=$PUPPETEER_TEST_RESULT" >> $GITHUB_ENV
if [[ $PUPPETEER_TEST_RESULT == "0" ]]; then
echo "# ✅ Puppeteer Sanity Test Valid" >> $GITHUB_STEP_SUMMARY
echo "# ✅ Puppeteer Sanity Report Valid" >> $GITHUB_STEP_SUMMARY
else
echo "# ❎ Puppeteer Sanity Different" >> $GITHUB_STEP_SUMMARY
echo '```diff' >> $GITHUB_STEP_SUMMARY
echo "${PUPPETEER_TEST_RESULT}" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo "# More" >> $GITHUB_STEP_SUMMARY
echo "$PUPPETEER_TEST_RESULT" >> $GITHUB_STEP_SUMMARY
fi
- name: "Full Sanity Test Diff"
- name: "Full Sanity Report Diff"
id: diff
continue-on-error: true
run: |
Expand Down Expand Up @@ -118,11 +120,13 @@ jobs:
else
echo "# ❎ Playwright Sanity Report Different" >> $GITHUB_STEP_SUMMARY
echo '```diff' >> $GITHUB_STEP_SUMMARY
echo "```${PLAYWRIGHT_TEST_RESULT}" >> $GITHUB_STEP_SUMMARY
echo "${PLAYWRIGHT_TEST_RESULT}" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo "# More" >> $GITHUB_STEP_SUMMARY
echo "$PLAYWRIGHT_TEST_RESULT" >> $GITHUB_STEP_SUMMARY
fi
- name: "Full Sanity Test Diff"
- name: "Full Sanity Report Diff"
id: diff
continue-on-error: true
run: |
Expand Down

0 comments on commit 1faa5e7

Please sign in to comment.