Skip to content

Commit c7ed51c

Browse files
committed
Merge branch 'ci-integration' into ci-integraton-and-fixes
2 parents 1a2a842 + 961be12 commit c7ed51c

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

.github/workflows/integration.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Integration test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
name: Test on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
submodules: true
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: lts/*
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Run tests
31+
run: npm test

example/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const filePath = path.resolve(__dirname, AUDIO_FILE)
1010
async function convert() {
1111
try {
1212
await nodewhisper(filePath, {
13-
modelName: 'base.en',
14-
autoDownloadModelName: 'base.en',
13+
modelName: 'tiny.en',
14+
autoDownloadModelName: 'tiny.en',
1515
whisperOptions: {
1616
outputInVtt: true,
1717
// Default is 20 which is too long
@@ -20,6 +20,7 @@ async function convert() {
2020
})
2121
} catch (exc) {
2222
console.error(exc)
23+
process.exit(1)
2324
}
2425
}
2526

0 commit comments

Comments
 (0)