Skip to content

Commit

Permalink
use npm for chromedriver
Browse files Browse the repository at this point in the history
  • Loading branch information
denseflux authored Oct 17, 2023
1 parent 19b58ea commit ba4781c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,21 @@ jobs:
- name: start static web server
run: npx http-server -p 3000 &

# - name: get chromedriver
# uses: nanasess/setup-chromedriver@v2.2.0
# with:
# chromedriver-version: 118

- name: get chromedriver
uses: nanasess/setup-chromedriver@v2.2.0
with:
chromedriver-version: 118
run: npm install -g chromedriver

- name: Run axe
run: |
chromedriver --url-base=/wd/hub &
npx wait-on http://127.0.0.1:3000
npm install -g @axe-core/cli
axe --exit --tags wcag2aa --stdout --chromedriver-path="/opt/google/chrome/chrome" http://localhost:3000
axe --exit --tags wcag2aa --stdout http://127.0.0.1:3000
# axe --exit --tags wcag2aa --stdout --chromedriver-path="/opt/google/chrome/chrome" http://127.0.0.1:3000
- name: Upload axe results
uses: actions/upload-pages-artifact@v2
Expand Down

0 comments on commit ba4781c

Please sign in to comment.