Skip to content

Commit

Permalink
try grep
Browse files Browse the repository at this point in the history
  • Loading branch information
lexicalninja committed Nov 22, 2024
1 parent 67e5304 commit fef234e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/documentation_accessibility_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ jobs:
sleep 10
- name: Check accessibility issues
id: accessibility_check
run: axe "localhost:3000/va-mobile-app/docs/Operations/App%20metrics/Dashboard" --chromedriver-path $(npm root -g)/chromedriver/bin/chromedriver

run: |
# Extract URLs from sitemap and iterate
issues=$(axe "https://department-of-veterans-affairs.github.io/va-mobile-app/docs/Operations/App%20metrics/Dashboard" | grep -oP '\d+(?= Accessibility issues detected'))
if [[ ! -z "$issues" ]]
then
echo "$issues number of issues"
else
echo "no issues"
fi

0 comments on commit fef234e

Please sign in to comment.