Chore: Removes pa11y-ci as dependency and use dlx instead (#41591)

This commit is contained in:
Hugo Häggmark
2021-11-11 12:54:08 +01:00
committed by GitHub
parent 175c39a976
commit 0e12293971
5 changed files with 38 additions and 315 deletions

View File

@@ -428,11 +428,11 @@ def test_a11y_frontend_step(ver_mode, edition, port=3001):
]
if ver_mode == 'pr':
commands.extend([
'yarn run test:accessibility-pr',
'yarn dlx pa11y-ci@git://github.com/pa11y/pa11y-ci#5c842cf1b9fe2867b70ff5354851d985be8d71c4 pa11y-ci --config .pa11yci-pr.conf.js',
])
else:
commands.extend([
'yarn run test:accessibility --json > pa11y-ci-results.json',
'yarn dlx --quiet pa11y-ci@git://github.com/pa11y/pa11y-ci#5c842cf1b9fe2867b70ff5354851d985be8d71c4 pa11y-ci --config .pa11yci.conf.js --json > pa11y-ci-results.json',
])
return {

View File

@@ -16,7 +16,7 @@ if [ -d "$report" ] ; then
fi
# Run e2e grafana instance
# Run e2e grafana instance
if [ "$BASE_URL" != "" ]; then
echo -e "BASE_URL set, skipping starting server"
@@ -27,10 +27,10 @@ else
fi
# Run accessibility command
yarn run -s test:accessibility --json > pa11y-ci-results.json
yarn dlx --quiet pa11y-ci@git://github.com/pa11y/pa11y-ci#5c842cf1b9fe2867b70ff5354851d985be8d71c4 --config .pa11yci.conf.js --json > pa11y-ci-results.json
# Generate HTML report
pa11y-ci-reporter-html
yarn dlx pa11y-ci-reporter-html@3.0.1 pa11y-ci-reporter-html
# Start local server
yarn http-server pa11y-ci-report -p 1234