Skip to content

Commit 24e514d

Browse files
committed
chore: add pinned CI and refresh lockfiles
1 parent b9ff2e4 commit 24e514d

6 files changed

Lines changed: 1065 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
verify:
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 30
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v6
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v6
24+
with:
25+
node-version: 24.14.1
26+
cache: npm
27+
28+
- name: Setup Deno
29+
uses: denoland/setup-deno@v2
30+
with:
31+
deno-version: 2.7.11
32+
33+
- name: Install npm dependencies
34+
run: npm ci
35+
36+
- name: Install Emscripten SDK (pinned)
37+
run: |
38+
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
39+
"$HOME/emsdk/emsdk" install 5.0.5
40+
"$HOME/emsdk/emsdk" activate 5.0.5
41+
42+
- name: Build (wasm + js)
43+
run: |
44+
source "$HOME/emsdk/emsdk_env.sh" > /dev/null
45+
npm run build
46+
47+
- name: Verify dist is up to date
48+
run: |
49+
if ! git diff --quiet -- dist; then
50+
echo "::error::dist/ is out of date. Run npm run build and commit updated artifacts."
51+
git --no-pager diff -- dist
52+
exit 1
53+
fi
54+
55+
- name: Run tests
56+
run: npm test
57+
58+
- name: Validate npm package
59+
run: npm pack --dry-run

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ This makes the module trivially instantiable in any environment without Emscript
194194
|---|---|
195195
| google/woff2 | v1.0.2 |
196196
| google/brotli | v1.1.0 |
197-
| Emscripten | latest (at build time; v0.1.1 built with 5.0.4) |
197+
| Emscripten | CI pinned to 5.0.5 (local builds may vary) |
198198
199199
## License
200200

0 commit comments

Comments
 (0)