mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Removes pa11y-ci as dependency and use dlx instead (#41591)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user