Skip to content

Commit 4359525

Browse files
authored
fixing chrome headless
1 parent c2cd56c commit 4359525

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/accessibility-scan.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# This workflow uses actions to scan for accessibility
2-
32
name: Accessibility Scan
43

54
on: [push, pull_request]
@@ -36,7 +35,9 @@ jobs:
3635

3736
- name: Run axe-core accessibility scan and save results as JSON
3837
run: |
39-
npx @axe-core/cli http://localhost:8080 --save ./axe-reports/accessibility-report.json
38+
npx @axe-core/cli http://localhost:8080 \
39+
--chrome-options="--no-sandbox --disable-dev-shm-usage --user-data-dir=/tmp/chrome-profile" \
40+
--save ./axe-reports/accessibility-report.json
4041
echo "Results saved to ./axe-reports/accessibility-report.json"
4142
4243
- name: Verify if the report is created

0 commit comments

Comments
 (0)