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 b4a709d commit 392f04f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/accessibility-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,20 @@ jobs:
run: |
nohup http-server ./ &
- name: Wait for the server to start
run: sleep 5 # Wait for 5 seconds to ensure server is ready

- name: Create axe-reports directory
run: mkdir -p ./axe-reports

- name: Run axe-cli accessibility scan
run: npx axe-cli http://localhost:8080 --output html --output-path ./axe-reports/accessibility-report.html
- name: Run axe-cli accessibility scan without output path
run: |
npx axe-cli http://localhost:8080
echo "Report should be generated in the default location."
- name: Verify report creation
run: |
ls -la ./axe-reports/
if [ -f ./axe-reports/accessibility-report.html ]; then
cat ./axe-reports/accessibility-report.html
else
Expand All @@ -44,3 +50,4 @@ jobs:
with:
name: axe-report
path: ./axe-reports/accessibility-report.html

0 comments on commit 392f04f

Please sign in to comment.