Skip to content

Commit a4cb774

Browse files
ozgesolidkeyclaude
andcommitted
Fix CI: rebuild better-sqlite3 for Node.js before running tests
postinstall runs @electron/rebuild which compiles native modules for Electron, but vitest runs on plain Node.js with a different NODE_MODULE_VERSION. Adding npm rebuild before tests fixes the mismatch. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e3ec262 commit a4cb774

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
- name: Type check
3232
run: npm run typecheck
3333

34+
- name: Rebuild native modules for Node.js (tests run on Node, not Electron)
35+
run: npm rebuild better-sqlite3
36+
3437
- name: Run tests
3538
run: npm test
3639

0 commit comments

Comments
 (0)