From 6d1faed1b7dda3b5015e3d36de2aca4556bdd518 Mon Sep 17 00:00:00 2001 From: Jeet Garg <47571120+jeetgarg@users.noreply.github.com> Date: Wed, 12 Feb 2025 09:17:50 +0530 Subject: [PATCH] Modifying chrome driver version --- .github/workflows/accessibility-scan.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/accessibility-scan.yml b/.github/workflows/accessibility-scan.yml index ceb262e97..e92ee7aa7 100644 --- a/.github/workflows/accessibility-scan.yml +++ b/.github/workflows/accessibility-scan.yml @@ -1,4 +1,5 @@ # This workflow uses actions to scan for accessibility +# This workflow uses actions to scan for accessibility name: Accessibility Scan on: [push, pull_request] @@ -21,10 +22,12 @@ jobs: - name: Install @axe-core/cli and http-server run: npm install -g @axe-core/cli http-server + - name: Install matching ChromeDriver version + run: npx browser-driver-manager install chrome + - name: Start local server run: | nohup http-server ./ & - - name: Wait for the server to start run: sleep 5 # Wait for 5 seconds to ensure server is ready @@ -33,7 +36,7 @@ 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 --chromedriver-path $(npx browser-driver-manager --path chromedriver) --save ./axe-reports/accessibility-report.json echo "Results saved to ./axe-reports/accessibility-report.json" - name: Verify if the report is created