Add code checker top-link #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow demonstrates the use of Siteimprove Accessibility Code Checker in a CI/CD pipeline. | |
# It is intended to fail since the tested page is purposely inaccessible. This demonstrates how the | |
# failures are shown both in the console and in the Page Report in Siteimprove Intelligence Platform. | |
# See https://alfa.siteimprove.com/code-checker | |
name: Accessibility Code Checker (this workflow *should* fail!) | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Accessibility Code Checker (this workflow *should* fail!) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: actions/cache@v4 | |
with: | |
path: .yarn/cache | |
key: yarn-${{ hashFiles('yarn.lock') }} | |
- run: > | |
yarn config set | |
npmScopes.siteimprove.npmAuthToken | |
${{ secrets.GITHUB_TOKEN }} | |
- run: yarn install --immutable | |
- run: yarn playwright install | |
- run: yarn dedupe --check | |
- run: yarn build | |
- run: yarn code-checker:start & | |
- run: yarn code-checker:test | |
env: | |
SI_USER_EMAIL: ${{ secrets.SI_USER_EMAIL }} | |
SI_API_KEY: ${{ secrets.SI_API_KEY }} |