-
-
Notifications
You must be signed in to change notification settings - Fork 393
61 lines (58 loc) · 1.83 KB
/
regressions.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Regressions
on: workflow_dispatch
env:
PUPPETEER_SKIP_DOWNLOAD: 1
PUPPETEER_EXECUTABLE_PATH: /usr/bin/google-chrome
FORCE_COLOR: 1
jobs:
build:
name: Build W3C profile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with: { node-version-file: '.nvmrc', cache: pnpm }
- run: pnpm i --frozen-lockfile
- run: pnpm build:w3c
- uses: actions/upload-artifact@v4
with:
name: builds
path: |
builds/respec-w3c.js*
builds/respec-worker.js*
builds/respec-highlight.js*
retention-days: 1
test:
name: Diff ${{ matrix.source }}
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
source:
- https://w3c.github.io/manifest/
- https://w3c.github.io/payment-request/
- https://w3c.github.io/trace-context/
- https://w3c.github.io/screen-wake-lock/
- https://w3c.github.io/push-api/
- https://w3c.github.io/geolocation-api/
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with: { node-version-file: '.nvmrc', cache: pnpm }
- run: pnpm i --frozen-lockfile
- uses: actions/download-artifact@v4
with:
name: builds
path: ./builds/
- run: git status
- run: node ./tools/respec2html ${{ matrix.source }} before.html -t 30 --verbose
- run: node ./tools/respec2html ${{ matrix.source }} after.html -t 30 --verbose --use-local
- uses: sidvishnoi/git-delta@v1
- name: git diff
run: |
set -o pipefail
git diff --exit-code --no-index before.html after.html | delta --diff-so-fancy
exit $?