File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
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
2+
33name : Accessibility Scan
44
55on : [push, pull_request]
1414 - name : Set up Node.js
1515 uses : actions/setup-node@v3
1616 with :
17- node-version : ' 14 '
17+ node-version : ' 16 ' # Upgraded to Node.js 16 to fix syntax errors
1818
1919 - name : Install dependencies
2020 run : npm install
2323 run : npm install -g @axe-core/cli http-server
2424
2525 - name : Install matching ChromeDriver version
26- run : npx browser-driver-manager install chrome
26+ run : npx browser-driver-manager install chrome || echo "Skipping if failed"
2727
2828 - name : Start local server
2929 run : |
3636
3737 - name : Run axe-core accessibility scan and save results as JSON
3838 run : |
39- npx @axe-core/cli http://localhost:8080 --chromedriver-path $(npx browser-driver-manager --path chromedriver) -- save ./axe-reports/accessibility-report.json
39+ npx @axe-core/cli http://localhost:8080 --save ./axe-reports/accessibility-report.json
4040 echo "Results saved to ./axe-reports/accessibility-report.json"
4141
4242 - name : Verify if the report is created
5151 with :
5252 name : axe-report
5353 path : ./axe-reports/accessibility-report.json
54-
You can’t perform that action at this time.
0 commit comments