Skip to content

Commit 6d1faed

Browse files
authored
Modifying chrome driver version
1 parent f93b3f2 commit 6d1faed

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/accessibility-scan.yml

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

45
on: [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

@@ -33,7 +36,7 @@ jobs:
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

0 commit comments

Comments
 (0)