From ba4781ce7a2952043e54ea5b9d978ee496790345 Mon Sep 17 00:00:00 2001 From: denseflux Date: Tue, 17 Oct 2023 17:18:14 +0100 Subject: [PATCH] use npm for chromedriver --- .github/workflows/hugo.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 9863105..b8b5c6c 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -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