mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-24 14:04:09 +03:00
Add pa11y-ci for accessibility testing.
Use pa11y-ci-reporter-html and also upload the HTML results to CI if there are any failures
This commit is contained in:
@@ -32,3 +32,18 @@ jobs:
|
||||
|
||||
- name: Test docs
|
||||
run: npm run docs
|
||||
|
||||
- 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: pa11y-ci-results
|
||||
path: pa11y-ci-report/
|
||||
if-no-files-found: error
|
||||
|
||||
Reference in New Issue
Block a user