Skip to content

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

ci: gate release and notarize builds on the test suite

Gabriel Steincd195466861d
diff --git a/.github/workflows/build-and-notarize.yml b/.github/workflows/build-and-notarize.yml
index ae00daf49..6ef1c6a58 100644
--- a/.github/workflows/build-and-notarize.yml
+++ b/.github/workflows/build-and-notarize.yml
@@ -16,7 +16,23 @@ on:
workflow_dispatch:
jobs:
+ tests:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
+ with:
+ node-version-file: .nvmrc
+ - name: Install dependencies
+ run: npm ci --ignore-scripts
+ - name: Run tests
+ run: npm test
+ env:
+ # keeps require("electron") from throwing when postinstall was skipped
+ ELECTRON_OVERRIDE_DIST_PATH: /tmp
+
build-linux:
+ needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -106,6 +122,7 @@ jobs:
retention-days: 7
build-windows:
+ needs: tests
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
@@ -214,6 +231,7 @@ jobs:
retention-days: 7
build-macos:
+ needs: tests
runs-on: macos-latest
strategy:
fail-fast: false
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 473102487..648a35257 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -15,7 +15,23 @@ permissions:
contents: write # Required for creating releases
jobs:
+ tests:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
+ with:
+ node-version-file: .nvmrc
+ - name: Install dependencies
+ run: npm ci --ignore-scripts
+ - name: Run tests
+ run: npm test
+ env:
+ # keeps require("electron") from throwing when postinstall was skipped
+ ELECTRON_OVERRIDE_DIST_PATH: /tmp
+
build-linux:
+ needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -98,6 +114,7 @@ jobs:
VITE_OPENWHISPR_OAUTH_CALLBACK_URL: ${{ vars.VITE_OPENWHISPR_OAUTH_CALLBACK_URL }}
build-windows:
+ needs: tests
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
@@ -204,6 +221,7 @@ jobs:
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
build-macos:
+ needs: tests
runs-on: macos-latest
strategy:
fail-fast: false