Skip to content

Commit

Permalink
Use pa11y-ci-reporter-html instead of pa11y-reporter-html
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Dec 16, 2021
1 parent 134dc7c commit 2ef4709
Show file tree
Hide file tree
Showing 5 changed files with 199 additions and 9 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ jobs:
- name: Run accessibility tests
run: npm run docs-accessibility

- name: Generate HTML accessibility results
run: npm run docs-pa11y-html
if: failure()

- name: Upload accessibility results
uses: actions/upload-artifact@v2
if: failure()
with:
name: pa11yci-report
path: pa11yci-report.html
path: ./pa11y-ci-report/
if-no-files-found: error
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ Thumbs.db
# Folders to ignore
/js/coverage/
/node_modules/
/pa11yci-report.html
/pa11y-ci-report/
/pa11y-ci-results.json
2 changes: 1 addition & 1 deletion build/pa11yci.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
defaults: {
reporters: [
'cli',
'pa11y-reporter-html'
['json', { fileName: './pa11y-ci-results.json' }]
],
runners: [
'htmlcs'
Expand Down
192 changes: 188 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"docs-spellcheck": "cspell \"site/**/*.md\" --no-progress",
"docs-vnu": "node build/vnu-jar.js",
"docs-lint": "npm-run-all --aggregate-output --parallel docs-vnu docs-linkinator docs-spellcheck",
"docs-pa11y": "pa11y-ci --config build/pa11yci.js --sitemap http://localhost:9001/sitemap.xml --sitemap-find https://getbootstrap.com --sitemap-replace http://localhost:9001>pa11yci-report.html",
"docs-pa11y": "pa11y-ci --config build/pa11yci.js --sitemap http://localhost:9001/sitemap.xml --sitemap-find https://getbootstrap.com --sitemap-replace http://localhost:9001",
"docs-pa11y-html": "pa11y-ci-reporter-html",
"docs-accessibility": "npm-run-all --parallel --race docs-serve-only docs-pa11y",
"docs-serve": "hugo server --port 9001 --disableFastRender",
"docs-serve-only": "sirv _site --no-clear --port 9001",
Expand Down Expand Up @@ -140,7 +141,7 @@
"nodemon": "^2.0.15",
"npm-run-all": "^4.1.5",
"pa11y-ci": "^3.0.0",
"pa11y-reporter-html": "^2.0.0",
"pa11y-ci-reporter-html": "^3.0.3",
"postcss": "^8.4.4",
"postcss-cli": "^9.0.2",
"rollup": "^2.60.2",
Expand Down

0 comments on commit 2ef4709

Please sign in to comment.