Skip to content

Commit

Permalink
using 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbuckley committed Feb 13, 2025
1 parent 497ede8 commit 2608b1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check_a11y_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ jobs:
- name: Run accessibility checks
run: |
# run npx serve in the background to serve the _site directory
npx serve --hostname 0.0.0.0 _site &
npx serve _site &
sleep 10
curl -I http://0.0.0.0:3000
curl -I http://127.0.0.1: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://0.0.0.0:3000/$path
npx @axe-core/cli --exit --tags wcag2aa --load-delay 1500 --chromedriver-path ${{ env.CHROMEDRIVER-PATH }} http://127.0.0.1:3000/$path
done

0 comments on commit 2608b1c

Please sign in to comment.