Skip to content

Commit

Permalink
curl test
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbuckley committed Feb 13, 2025
1 parent d48ec74 commit 497ede8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/check_a11y_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ jobs:
- name: Run accessibility checks
run: |
# run npx serve in the background to serve the _site directory
npx serve _site &
npx serve --hostname 0.0.0.0 _site &
sleep 10
curl -I http://0.0.0.0:3000
# for every recursively nested *.html file in _site, run a11y checks
for file in $(find _site -name '*.html'); do
path=${file#_site/}
echo "path to check: ${path}"
echo "driver path: ${{ env.CHROMEDRIVER-PATH }}"
npx @axe-core/cli --exit --tags wcag2aa --load-delay 1500 --chromedriver-path ${{ env.CHROMEDRIVER-PATH }} http://localhost:3000/$path
npx @axe-core/cli --exit --tags wcag2aa --load-delay 1500 --chromedriver-path ${{ env.CHROMEDRIVER-PATH }} http://0.0.0.0:3000/$path
done

0 comments on commit 497ede8

Please sign in to comment.