diff --git a/.github/actions/sanity-test-checks/action.yml b/.github/actions/sanity-test-checks/action.yml index b0db609a6..747cf2c88 100644 --- a/.github/actions/sanity-test-checks/action.yml +++ b/.github/actions/sanity-test-checks/action.yml @@ -26,26 +26,7 @@ runs: TEST_RESULT=$(\ diff -c \ <(jq \ - 'walk(if type == "object" then with_entries(.value |= \ - if type == "object" or type == "array" \ - then . \ - else \ - "" \ - end) \ - else . \ - end)' \ - $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) \ - ) + 'walk(if type == "object" then with_entries(.value |= if type == "object" or type == "array" then . else "" end) else . end)' $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 diff --git a/.github/actions/smoke-test-checks/action.yml b/.github/actions/smoke-test-checks/action.yml index aa9b5739e..1241e850b 100644 --- a/.github/actions/smoke-test-checks/action.yml +++ b/.github/actions/smoke-test-checks/action.yml @@ -23,36 +23,7 @@ runs: run: | set +e FIXTURE="test/__fixtures__/${{ inputs.FIXTURE }}" - TEST_RESULT=$(\ - diff -c \ - <(jq \ - 'walk(if type == "object" then with_entries(.value |= \ - if type == "object" or type == "array" - then . \ - else \ - "" \ - end) \ - else . \ - end) | \ - del(\ - .tests[].pair.diff, \ - .tests[].pair.diffImage \ - )'\ - $FIXTURE) \ - <(jq \ - 'walk(if type == "object" then with_entries(.value |= \ - if type == "object" or type == "array" \ - then . \ - else \ - "" \ - end) \ - else . \ - end) | \ - del(\ - .tests[].pair.diff, \ - .tests[].pair.diffImage\ - )' \ - 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) | del( .tests[].pair.diff, .tests[].pair.diffImage)' $FIXTURE) <(jq 'walk(if type == "object" then with_entries(.value |= if type == "object" or type == "array" then . else "" end) else . end) | del( .tests[].pair.diff, .tests[].pair.diffImage)' test/configs/backstop_data/bitmaps_test/**/report.json)) echo "TEST_RESULT=$TEST_RESULT" >> $GITHUB_ENV if [[ "$TEST_RESULT" != "" ]]; then