diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 91a3895..8df82d5 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -61,9 +61,21 @@ jobs: uses: actions/upload-pages-artifact@v2 with: path: ./public - - name: Scan for accessibility issues - uses: digihum/axe-pipelines-samples@main - # Provide any additional inputs here + - name: Use Node.js 16 + uses: actions/setup-node@v3 + with: + node-version: 16 + cache: "npm" + - name: start static web server + - run: npx http-server -p 3000 + - name: Run axe + - run: npm start & npx wait-on http://localhost:3000 + - run: npm install -g @axe-core/cli + - run: axe --exit --tags wcag2aa --stdout http://localhost:3000 + - name: Upload axe results + uses: actions/upload-pages-artifact@v2 + with: + path: ./axe-results # Deployment job deploy: