fix(ci): rebuild better-sqlite3 for Node before tests

postinstall rebuilds native modules for Electron's ABI, but vitest
runs under system Node.js. Add an explicit rebuild step so
orchestration tests can load the better-sqlite3 native module.

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Jinwoo-H
2026-04-27 23:46:55 -04:00
co-authored by Orca
parent 379af8536a
commit 4179d3d347
+6
View File
@@ -38,6 +38,12 @@ jobs:
- name: Typecheck
run: pnpm typecheck
# Why: postinstall rebuilds better-sqlite3 for Electron's ABI via
# @electron/rebuild, but vitest runs under system Node.js. Rebuild
# it for Node so orchestration tests can load the native module.
- name: Rebuild better-sqlite3 for Node
run: pnpm rebuild better-sqlite3
- name: Test
run: pnpm test