-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (47 loc) · 1.28 KB
/
Copy pathci.yml
File metadata and controls
59 lines (47 loc) · 1.28 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
name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24.14.1
cache: npm
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: 2.7.11
- name: Install npm dependencies
run: npm ci
- name: Install Emscripten SDK (pinned)
run: |
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
"$HOME/emsdk/emsdk" install 5.0.5
"$HOME/emsdk/emsdk" activate 5.0.5
- name: Build (wasm + js)
run: |
source "$HOME/emsdk/emsdk_env.sh" > /dev/null
npm run build
- name: Verify dist is up to date
run: |
if ! git diff --quiet -- dist; then
echo "::error::dist/ is out of date. Run npm run build and commit updated artifacts."
git --no-pager diff -- dist
exit 1
fi
- name: Run tests
run: npm test
- name: Validate npm package
run: npm pack --dry-run