Skip to content

Commit

Permalink
chore: update build a11y tests (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender authored Nov 28, 2021
1 parent 843e649 commit 26ffbee
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
- name: Checkout source
uses: actions/checkout@v2

- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down Expand Up @@ -42,10 +47,13 @@ jobs:
--url-swap "https\://daveskender.github.io/Stock.Indicators:http\://127.0.0.1:4000" \
_site
# - name: Test accessibility
# working-directory: docs
# run: |
# npm i -g pa11y-ci
# pa11y-ci \
# --sitemap http://127.0.0.1:4000/sitemap.xml \
# --sitemap-exclude "/*.pdf"
- name: Show environment
working-directory: docs
run: npx pa11y --environment

- name: Test accessibility
working-directory: docs
run: |
npx pa11y-ci \
--sitemap http://127.0.0.1:4000/sitemap.xml \
--sitemap-exclude "/*.pdf"
5 changes: 2 additions & 3 deletions docs/.pa11yci
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"defaults": {
"concurrency": 4,
"concurrency": 1,
"standard": "WCAG2AA",
"runners": ["axe"],
"timeout": 30000
"runners": ["htmlcs"]
}
}
3 changes: 1 addition & 2 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ When adding or updating indicators:
- build the site locally (see above), then:

```bash
npm i -g pa11y-ci
pa11y-ci --sitemap http://127.0.0.1:4000/sitemap.xml --sitemap-exclude "/*.pdf"
npx pa11y-ci --sitemap http://127.0.0.1:4000/sitemap.xml --sitemap-exclude "/*.pdf"
```

### Testing for broken URLs
Expand Down

0 comments on commit 26ffbee

Please sign in to comment.