Skip to content

Commit

Permalink
fixing chrome headless
Browse files Browse the repository at this point in the history
  • Loading branch information
jeetgarg authored Feb 12, 2025
1 parent c2cd56c commit 4359525
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/accessibility-scan.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# This workflow uses actions to scan for accessibility

name: Accessibility Scan

on: [push, pull_request]
Expand Down Expand Up @@ -36,7 +35,9 @@ jobs:

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

0 comments on commit 4359525

Please sign in to comment.