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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user