fix(streaming): reject premature AssemblyAI closes #344
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| pull_request: | |
| 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: 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: | |
| # keeps require("electron") from throwing when postinstall was skipped | |
| ELECTRON_OVERRIDE_DIST_PATH: /tmp |