Skip to content

Commit 0387d20

Browse files
committed
fix: configure pa11y-ci for GitHub Actions (Chromium --no-sandbox)
1 parent 71f6740 commit 0387d20

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ jobs:
3434
- run: npx linkinator ./_build/html/
3535

3636
- name: Accessibility check
37-
# pa11y-ci needs a running server to crawl the built site
37+
# pa11y-ci needs a running server to crawl the built site.
38+
# Chromium requires --no-sandbox on GitHub Actions runners (see .pa11yci).
3839
run: |
3940
npx serve _build/html -p 4117 &
4041
SERVER_PID=$!

.pa11yci

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"defaults": {
33
"standard": "WCAG2AA",
4-
"timeout": 15000
4+
"timeout": 15000,
5+
"chromeLaunchConfig": {
6+
"args": ["--no-sandbox"]
7+
}
58
}
69
}

0 commit comments

Comments
 (0)