Skip to content

Commit

Permalink
Update accessibility-scan.yml
Browse files Browse the repository at this point in the history
Output report path
  • Loading branch information
jeetgarg authored Jan 28, 2025
1 parent 0221696 commit 7a243ee
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/accessibility-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,14 @@ jobs:
- name: Run axe-cli accessibility scan and save to file
run: |
npx axe-cli http://localhost:8080 --output html --output-path ./axe-reports/accessibility-report.html
echo "Report saved to ./axe-reports/accessibility-report.html"
echo "Report should be saved to ./axe-reports/accessibility-report.html"
- name: Verify report creation
- name: Check if the report is created and list the directory contents
run: |
echo "Listing contents of axe-reports directory:"
ls -la ./axe-reports/
if [ -f ./axe-reports/accessibility-report.html ]; then
cat ./axe-reports/accessibility-report.html
else
echo "Report not created"
fi
echo "Attempting to read the report content:"
cat ./axe-reports/accessibility-report.html || echo "Report not found"
- name: Upload axe-core report
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 7a243ee

Please sign in to comment.