Skip to content

Commit

Permalink
Update accessibility-scan.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jeetgarg authored Jan 28, 2025
1 parent d069b45 commit 7c2454c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/accessibility-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ jobs:
- name: Install dependencies
run: npm install

- name: Install axe-cli globally
run: npm install -g axe-cli
- name: Install axe-cli and http-server
run: npm install -g axe-cli http-server

- name: Start local server
run: |
nohup http-server ./ &
- name: Run axe-cli accessibility scan
run: npx axe ./ --output html --output-path ./axe-reports/accessibility-report.html
run: npx axe-cli http://localhost:8080 --output html --output-path ./axe-reports/accessibility-report.html

- name: Upload axe-core report
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 7c2454c

Please sign in to comment.