Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

ci: restore better-sqlite3 rebuild and typecheck steps dropped by #1285

Gabriel Stein7b7807740a67
diff --git a/.github/workflows/build-and-notarize.yml b/.github/workflows/build-and-notarize.yml
index 6ef1c6a58..df4e1c386 100644
--- a/.github/workflows/build-and-notarize.yml
+++ b/.github/workflows/build-and-notarize.yml
@@ -25,6 +25,10 @@ jobs:
node-version-file: .nvmrc
- name: Install dependencies
run: npm ci --ignore-scripts
+ - name: Build better-sqlite3 for the runner's node
+ # --ignore-scripts skips the native build; DB-backed tests silently
+ # skip without it. This job is the only test gate on push to main.
+ run: npm rebuild better-sqlite3
- name: Run tests
run: npm test
env:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 25dcf1679..3c5e9d7f5 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -13,6 +13,12 @@ jobs:
node-version-file: .nvmrc
- name: Install dependencies
run: npm ci --ignore-scripts
+ - name: Build better-sqlite3 for the runner's node
+ # --ignore-scripts skips the native build, so every DB-backed test
+ # (snippetsDatabase, noteCloudUpsertGuard, …) silently skips without this.
+ run: npm rebuild better-sqlite3
+ - name: Typecheck
+ run: npm run typecheck
- name: Run tests
run: npm test
env: