Skip to content

Commit

Permalink
adding chromedriver path arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbuckley committed Feb 13, 2025
1 parent db75911 commit 9299727
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/check_a11y_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ jobs:
cache: 'pip'

- name: Set up Chrome
id: setup-chrome
uses: browser-actions/setup-chrome@v1
with:
install-chromedriver: true
run: |
# copy chromedriver path to ENV variable
echo "CHROMEDRIVER-PATH=${{ steps.setup-chrome.outputs.chromedriver-path }}" >> $GITHUB_ENV
- name: Install dependencies
run: |
Expand All @@ -46,8 +50,8 @@ jobs:
sleep 3
# for every recursively nested *.html file in _site, run a11y checks
for file in $(find _site -name '*.html'); do
echo "raw file: ${file}"
path=${file#_site/}
echo "path to check: ${path}"
npx @axe-core/cli --exit --tags wcag2aa http://localhost:3000/$path
echo "driver path: ${{ env.CHROMEDRIVER-PATH }}"
npx @axe-core/cli --exit --tags wcag2aa --chromedriver-path ${{ env.CHROMEDRIVER-PATH }} http://localhost:3000/$path
done

0 comments on commit 9299727

Please sign in to comment.