Repository navigation
69 lines (66 loc) · 2.48 KB
/
Copy pathcheck-typescript.yml
File metadata and controls
69 lines (66 loc) · 2.48 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
name: Check TypeScript
# pnpm install, the merged TypeScript and platform gate, and the examples.
# Python wheel: check-python.yml. Rust workspace: check-rust.yml.
on:
push:
branches: [ dev, master ]
pull_request:
branches: [ dev, master ]
jobs:
typescript:
name: pnpm packages
runs-on: ubuntu-latest
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- uses: pnpm/action-setup@v4
with:
version: 10.18.3
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- uses: taiki-e/install-action@v2
with:
tool: wasm-bindgen-cli@0.2.127
# The platform stages build a wheel for the installed-wheel Python stage.
- name: Install the wheel build tool
run: python3 -m pip install --quiet maturin
- name: Assert the checkout has no native artifact
run: test ! -e projects/sqlite.rs/sqlite-napi/sqlite.node
- name: Install SQLite test dependencies
run: pnpm install --no-frozen-lockfile
# One entry builds the native binding, then runs every suite and every
# platform stage: `sqlite.ts`, `sqlite.py`, node, wasm and python. The
# report separates external conformance, storage primitives and SQL
# execution instead of printing one aggregate number.
- name: TypeScript suite, Python suite and platform stages
run: node scripts/check-test-floor.mjs
- name: Downstream examples
run: |
pnpm examples:ts
pnpm examples:py
# Seeded differential corpus as a regression gate. The seed and the count are
# fixed, the corpus digest is verified before any engine starts, and every
# observed difference must match one entry in the known-difference baseline.
corpus:
name: differential corpus
runs-on: ubuntu-latest
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- uses: pnpm/action-setup@v4
with:
version: 10.18.3
- uses: dtolnay/rust-toolchain@stable
- name: Install SQLite test dependencies
run: pnpm install --no-frozen-lockfile
- name: Build the native binding
run: node scripts/build-napi.mjs
- name: Differential corpus gate
run: pnpm corpus -- --seed 20261106 --count 200 --check