From 4179d3d347d6deed0b08def2ef036937c2d04a01 Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Mon, 27 Apr 2026 19:40:11 -0400 Subject: [PATCH] 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 --- .github/workflows/pr.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e52ff1bd9..481281c1b 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -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