Skip to content

Commit

Permalink
chore(transcription): add transcriptions test to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lutangar committed Jun 10, 2024
1 parent be0611e commit c03de19
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
strategy:
fail-fast: false
matrix:
test_suite: [ types-package, client, api-1, api-2, api-3, api-4, api-5, cli-plugin, lint, external-plugins ]
test_suite: [ types-package, client, api-1, api-2, api-3, api-4, api-5, transcription, cli-plugin, lint, external-plugins ]

env:
PGUSER: peertube
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
node_modules
*npm-debug.log
yarn-error.log
*-ci.log
.yarn

# Testing
Expand Down
3 changes: 2 additions & 1 deletion apps/peertube-runner/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
{ "path": "../../packages/ffmpeg" },
{ "path": "../../packages/models" },
{ "path": "../../packages/node-utils" },
{ "path": "../../packages/server-commands" }
{ "path": "../../packages/server-commands" },
{ "path": "../../packages/transcription" },
]
}
8 changes: 8 additions & 0 deletions scripts/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,12 @@ elif [ "$1" = "lint" ]; then
npm run swagger-cli -- validate support/doc/api/openapi.yaml

( cd client && npm run lint )
elif [ "$1" = "transcription" ]; then
npm run build:server
npm run build:tests

transcriptionFiles=$(findTestFiles ./packages/tests/dist/transcription)
jiwerFiles=$(findTestFiles ./packages/tests/dist/jiwer)

MOCHA_PARALLEL=true runJSTest "$1" $((3*$speedFactor)) $transcriptionFiles $jiwerFiles
fi

0 comments on commit c03de19

Please sign in to comment.