Chore: re-enable pa11y-ci for PRs (#41723)

* Chore: re-enable pa11y-ci for PRs

* Chore: update signature

* Chore: revert wait times

* Chore: use same hash as docker image
This commit is contained in:
Hugo Häggmark
2021-11-17 06:03:09 +01:00
committed by GitHub
parent 306f0785e1
commit b4faee786f
4 changed files with 18 additions and 15 deletions

View File

@@ -444,10 +444,12 @@ def test_a11y_frontend_step(ver_mode, edition, port=3001):
commands = [
'yarn wait-on http://$HOST:$PORT',
]
failure = 'ignore'
if ver_mode == 'pr':
commands.extend([
'pa11y-ci --config .pa11yci-pr.conf.js',
])
failure = 'always'
else:
commands.extend([
'pa11y-ci --config .pa11yci.conf.js --json > pa11y-ci-results.json',
@@ -464,7 +466,7 @@ def test_a11y_frontend_step(ver_mode, edition, port=3001):
'HOST': 'end-to-end-tests-server' + enterprise2_suffix(edition),
'PORT': port,
},
'failure': 'ignore',
'failure': failure,
'commands': commands,
}

View File

@@ -27,7 +27,7 @@ else
fi
# Run accessibility command
yarn dlx --quiet pa11y-ci@pa11y/pa11y-ci#5c842cf1b9fe2867b70ff5354851d985be8d71c4 --config .pa11yci.conf.js --json > pa11y-ci-results.json
yarn dlx --quiet pa11y-ci@pa11y/pa11y-ci#6b2d4f54efe445ad551472acc1877fe7542ac085 --config .pa11yci.conf.js --json > pa11y-ci-results.json
# Generate HTML report
yarn dlx pa11y-ci-reporter-html@3.0.1 pa11y-ci-reporter-html