Commit 5bc1d4c
ci(sdk-node): add drift check and smoke test to CI
Without this, edits to crates/openshell-sdk-node/src/lib.rs that change
the napi surface would silently land with stale index.js / index.d.ts,
shipping a TypeScript SDK whose types lie about the runtime.
- New mise tasks: sdk-node:install, sdk-node:build, sdk-node:smoke, and
sdk-node:check. The :check task rebuilds the binding, fails if the
regenerated index.{js,d.ts} differ from HEAD, then runs the smoke
suite.
- Wire sdk-node:check into [ci] so `mise run pre-commit` covers it.
- New "TypeScript SDK" job in branch-checks.yml runs sdk-node:check on
linux-amd64 (the generated files are platform-agnostic; one arch is
sufficient to catch drift).
- Commit crates/openshell-sdk-node/package-lock.json so `npm ci` in
the new task is deterministic.1 parent c2935a2 commit 5bc1d4c
5 files changed
Lines changed: 1939 additions & 2 deletions
File tree
- .github/workflows
- crates/openshell-sdk-node
- tasks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
0 commit comments