-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added pa11y-ci testing with axe using GitHub action.
- Loading branch information
Showing
4 changed files
with
1,894 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: pa11y tests | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Building site and running pa11y-ci tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout source. | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install jekyll site dependencies. | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.6 | ||
bundler-cache: true | ||
|
||
- name: Install pa11y-ci dependencies. | ||
run: npm install | ||
|
||
- name: Start up jekyll server. | ||
run: npm run start-detached | ||
|
||
- name: Run pa11y-ci. | ||
run: npm run pa11y-ci | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"defaults": { | ||
"concurrency": 4, | ||
"standard": "WCAG2AA", | ||
"runners": ["axe"] | ||
}, | ||
"urls": [ | ||
"http://localhost:4000/", | ||
"http://localhost:4000/docs/", | ||
"http://localhost:4000/theme/" | ||
] | ||
} |
Oops, something went wrong.