Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Integration test

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
5 changes: 3 additions & 2 deletions example/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const filePath = path.resolve(__dirname, AUDIO_FILE)
async function convert() {
try {
await nodewhisper(filePath, {
modelName: 'base.en',
autoDownloadModelName: 'base.en',
modelName: 'tiny.en',
autoDownloadModelName: 'tiny.en',
whisperOptions: {
outputInVtt: true,
// Default is 20 which is too long
Expand All @@ -20,6 +20,7 @@ async function convert() {
})
} catch (exc) {
console.error(exc)
process.exit(1)
}
}

Expand Down
Loading