Skip to content

Commit

Permalink
Update hugo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
denseflux authored Dec 5, 2023
1 parent e44c20e commit 9c82069
Showing 1 changed file with 17 additions and 22 deletions.
39 changes: 17 additions & 22 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,32 +61,27 @@ jobs:
uses: actions/upload-pages-artifact@v2
with:
path: ./public
- name: Get npx
uses: mikeal/npx@1.0.0
#- name: Get npx
# uses: mikeal/npx@1.0.0

- name: start static web server
run: npx http-server -p 3000 &
#- 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
run: npm install -g chromedriver
#- name: get chromedriver
# 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 $(npm root -g)/chromedriver/bin/chromedriver http://127.0.0.1:3000
# axe --exit --tags wcag2aa --stdout --chromedriver-path "/opt/google/chrome/chrome" http://127.0.0.1:3000
#- 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 $(npm root -g)/chromedriver/bin/chromedriver 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
with:
path: ./axe-results
#- name: Upload axe results
# uses: actions/upload-pages-artifact@v2
# with:
# path: ./axe-results

# Deployment job
deploy:
Expand Down

0 comments on commit 9c82069

Please sign in to comment.