Repository navigation
76 lines (62 loc) · 2.02 KB
/
Copy pathci.yml
File metadata and controls
76 lines (62 loc) · 2.02 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
examples:
name: Rebuild the examples
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
- name: Regression tests
run: |
test_deps="$(mktemp -d)"
trap 'rm -rf "$test_deps"' EXIT
npm install --prefix "$test_deps" --no-audit --no-fund --ignore-scripts react@19.3.0 react-dom@19.3.0 typescript@5.9.3 esbuild@0.28.2
NODE_PATH="$test_deps/node_modules" node --test scripts/*.test.mjs
- name: Dial indicator
run: |
node examples/dial-indicator/build.mjs
node examples/dial-indicator/build.mjs --light
- name: Desk computer
run: |
node examples/desk-computer/build.mjs
node examples/desk-computer/build.mjs --light
- name: Arcade cabinet
run: |
node examples/arcade-cabinet/build.mjs
node examples/arcade-cabinet/build.mjs --light
- name: Ripple tank
run: |
node examples/ripple-tank/build.mjs
node examples/ripple-tank/build.mjs --light
- name: Turning dial
run: |
node examples/turning-dial/build.mjs
node examples/turning-dial/build.mjs --light
node examples/turning-dial/build.mjs --light --verify
node examples/turning-dial/stress.mjs --light
- name: Raptor engine
run: |
node examples/raptor-engine/build.mjs
node examples/raptor-engine/build.mjs --light
- name: Push button
run: |
node examples/push-button/build.mjs
node examples/push-button/build.mjs --light
- name: Committed pages are unchanged
run: |
git status --short
git diff --stat --exit-code
test -z "$(git status --porcelain)"