Skip to content

Commit

Permalink
Merge pull request #402 from greenpeace/prevent-ever-failing-a11y-fro…
Browse files Browse the repository at this point in the history
…m-failing-all-workflows

Prevent ever failing a11y from failing all workflows
  • Loading branch information
Inwerpsel authored Oct 6, 2020
2 parents 915e380 + 58caa8c commit 463882e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ jobs:
export APP_IMAGE=gcr.io/planet-4-151612/planet4-base-app:${BUILD_TAG}
export OPENRESTY_IMAGE=gcr.io/planet-4-151612/planet4-base-openresty:${BUILD_TAG}
make -C planet4-docker-compose ci-extract-a11y-artifacts
errors=$(jq '.["results"] | .[] | unique_by(.["type"]) | map(select(.["type"] == "error")) | .[]' planet4-docker-compose/artifacts/pa11y/pa11y-ci-results.json)
if [ ! -z "${errors}" ]; then echo "Errors found, see report in artifacts." && exit 1; else echo "No errors, report available in artifacts."; fi
errors=$(jq '.errors' planet4-docker-compose/artifacts/pa11y/pa11y-ci-results.json)
if [ "$errors" -gt 0 ]; then echo "$errors errors found, see report in artifacts."; else echo "No errors, report available in artifacts."; fi
create-release-zip:
docker:
Expand Down

0 comments on commit 463882e

Please sign in to comment.