File tree Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ const filePath = path.resolve(__dirname, AUDIO_FILE)
1010async 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
You can’t perform that action at this time.
0 commit comments