Skip to content

Commit

Permalink
Updated working drectory on step8
Browse files Browse the repository at this point in the history
  • Loading branch information
IsraelleHub committed Apr 12, 2024
1 parent a666554 commit 525fb63
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/documentation_accessibility_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,20 @@ jobs:

# Step 8: Run accessibility check
- name: Run accessibility check
working-directory: VAMobile/documentation
working-directory: ${{ github.workspace }} # Set the working directory to the repository's root directory
run: |
while IFS= read -r url; do
# Ensure that the URLs file exists
if [ ! -f "urls.txt" ]; then
echo "Error: urls.txt file not found."
exit 1
fi
while IFS= read -r url; do
# Use a unique name for the report file based on the URL
report_file="${url//\//-}-axe-report.json"
axe "$url" --exit --tags wcag2a,wcag2aa > "$report_file"
done < urls.txt
done < urls.txt
Expand Down

0 comments on commit 525fb63

Please sign in to comment.