Skip to content

Commit

Permalink
Added pa11y-ci testing with axe using GitHub action.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmundra committed Apr 23, 2021
1 parent 4e8875c commit 8c7b986
Show file tree
Hide file tree
Showing 4 changed files with 1,894 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pa11y.yml
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

12 changes: 12 additions & 0 deletions .pa11yci
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/"
]
}
Loading

0 comments on commit 8c7b986

Please sign in to comment.