-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (39 loc) · 1.33 KB
/
code-checker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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 }}