File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11# This workflow uses actions to scan for accessibility
2+ # This workflow uses actions to scan for accessibility
23name : Accessibility Scan
34
45on : [push, pull_request]
@@ -21,10 +22,12 @@ jobs:
2122 - name : Install @axe-core/cli and http-server
2223 run : npm install -g @axe-core/cli http-server
2324
25+ - name : Install matching ChromeDriver version
26+ run : npx browser-driver-manager install chrome
27+
2428 - name : Start local server
2529 run : |
2630 nohup http-server ./ &
27-
2831 - name : Wait for the server to start
2932 run : sleep 5 # Wait for 5 seconds to ensure server is ready
3033
3336
3437 - name : Run axe-core accessibility scan and save results as JSON
3538 run : |
36- npx @axe-core/cli http://localhost:8080 --save ./axe-reports/accessibility-report.json
39+ npx @axe-core/cli http://localhost:8080 --chromedriver-path $(npx browser-driver-manager --path chromedriver) -- save ./axe-reports/accessibility-report.json
3740 echo "Results saved to ./axe-reports/accessibility-report.json"
3841
3942 - name : Verify if the report is created
You can’t perform that action at this time.
0 commit comments