Skip to content

Commit

Permalink
Try
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Dec 3, 2021
1 parent 0eac6b2 commit d167526
Show file tree
Hide file tree
Showing 6 changed files with 235 additions and 44 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Docs

on:
push:
branches-ignore:
- "dependabot/**"
pull_request:
workflow_dispatch:

env:
FORCE_COLOR: 2
Expand Down Expand Up @@ -36,10 +32,18 @@ jobs:
- name: Run accessibility tests
run: npm run docs-accessibility

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

- name: Commands
run: pwd; ls ./pa11y-ci-report/;
if: failure()

- name: Upload accessibility results
uses: actions/upload-artifact@v2
if: failure()
with:
name: pa11yci-report
path: pa11yci-report.html
name: pa11y-ci-results
path: ./pa11y-ci-report/
if-no-files-found: error
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ Thumbs.db
# Folders to ignore
/js/coverage/
/node_modules/
/pa11yci-report.html
/pa11y-ci-report/
pa11y-ci-results.json
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
Loading

0 comments on commit d167526

Please sign in to comment.