Skip to content

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

ci: require database tests in releases

Marshall Boseea67a993faef
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 648a35257..cbb7dd1f5 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -24,11 +24,17 @@ 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 DB-backed tests silently
+ # skip unless the binding is rebuilt for the CI Node runtime.
+ run: npm rebuild better-sqlite3
- name: Run tests
run: npm test
env:
# keeps require("electron") from throwing when postinstall was skipped
ELECTRON_OVERRIDE_DIST_PATH: /tmp
+ # a skipped DB test here means the rebuild step above is gone: fail instead
+ REQUIRE_DB_TESTS: "1"
build-linux:
needs: tests