Skip to content

Commit

Permalink
wip: improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrebb committed Jan 16, 2024
1 parent a161e9a commit 90fcc2f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/actions/sanity-test-checks/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,18 @@ runs:
working-directory: ${{ inputs.WORKSPACE_ROOT }}
run: |
set +e
TEST_RESULT=$(diff -c <(jq 'walk(if type == "object" then with_entries(.value |= if type == "object" or type == "array" then . else "" end) else . end)' test/__fixtures__/${{ inputs.FIXTURE }}) \
<(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))
TEST_RESULT=$(diff -c <(jq \
'walk(if type == "object" then with_entries(.value |= \
if type == "object" or type == "array" then . \
else "" \
end) \
else . end)' \
test/__fixtures__/${{ inputs.FIXTURE }}) \
<(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 "TEST_RESULT=$TEST_RESULT" >> $GITHUB_ENV
if [[ "$TEST_RESULT" != "" ]]; then
echo "# ❎ ${{ inputs.RUNNER }} Sanity Different" >> $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit 90fcc2f

Please sign in to comment.