Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
list files
Browse files Browse the repository at this point in the history
  • Loading branch information
rylew1 committed Jun 6, 2024
1 parent f08dc3f commit 23bc355
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci-frontend-a11y.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@ jobs:
set -e # Ensure the script fails if any command fails
npm run test:pa11y > pa11y-results.txt
echo "pa11y-ci tests finished."
ls -la ./screenshots-output # List the files in the screenshots-output directory to verify screenshots are created
- name: Parse and format Pa11y results
id: parse-pa11y
run: |
# Extract and format the results
grep -oP 'Errors in .+?:\n(?:\s+• .+?\n)+' pa11y-results.txt | sed 's/^/| /; s/$/ |/; 1i | URL | Errors |' > pa11y-report.md
grep -oP 'Errors in .+?:\n(?:\s+• .+?\n)+' pa11y-results.txt | sed 's/^/| /; s/$/ |/; 1i | URL | Errors |' > ./frontend/pa11y-report.md
- name: Upload screenshots
if: always()
Expand All @@ -73,7 +74,7 @@ jobs:
with:
script: |
const fs = require('fs');
const pa11yReport = fs.readFileSync('pa11y-report.md', 'utf8');
const pa11yReport = fs.readFileSync('./frontend/pa11y-report.md', 'utf8');
github.rest.issues.createComment({
...context.repo,
issue_number: context.issue.number,
Expand Down

0 comments on commit 23bc355

Please sign in to comment.