ActivityPub-federated video streaming platform using P2P directly in your web browser
Create another test suite for transcoding jobs
Chocobozzz95faf1eaffff
diff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex 8ba2c549d3..f0b9778b03 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -39,7 +39,7 @@ jobs:strategy:fail-fast: falsematrix:- test_suite: [ types-package, client, api-1, api-2, api-3, api-4, cli-plugin, lint, external-plugins ]+ test_suite: [ types-package, client, api-1, api-2, api-3, api-4, api-5, cli-plugin, lint, external-plugins ]env:PGUSER: peertubediff --git a/scripts/ci.sh b/scripts/ci.shindex 2bacf2a2e1..5f1230d33c 100755--- a/scripts/ci.sh+++ b/scripts/ci.sh@@ -94,6 +94,12 @@ elif [ "$1" = "api-4" ]; thenactivitypubFiles=$(findTestFiles ./dist/server/tests/api/activitypub)MOCHA_PARALLEL=true runTest "$1" 2 $moderationFiles $redundancyFiles $activitypubFiles $objectStorageFiles+elif [ "$1" = "api-5" ]; then+ npm run build:server++ transcodingFiles=$(findTestFiles ./dist/server/tests/api/transcoding)++ MOCHA_PARALLEL=true runTest "$1" 2 $transcodingFileselif [ "$1" = "external-plugins" ]; thennpm run build:serverdiff --git a/scripts/test.sh b/scripts/test.shindex 4d1d8720a6..3b294b386b 100755--- a/scripts/test.sh+++ b/scripts/test.sh@@ -9,6 +9,7 @@ npm run ci -- api-1npm run ci -- api-2npm run ci -- api-3npm run ci -- api-4+npm run ci -- api-5npm run ci -- external-pluginsnpm run ci -- lintdiff --git a/server/tests/api/index.ts b/server/tests/api/index.tsindex 19301c0b93..61352a134d 100644--- a/server/tests/api/index.ts+++ b/server/tests/api/index.ts@@ -7,5 +7,6 @@ import './notifications'import './redundancy'import './search'import './server'+import './transcoding'import './users'import './videos'diff --git a/server/tests/api/videos/audio-only.ts b/server/tests/api/transcoding/audio-only.tssimilarity index 100%rename from server/tests/api/videos/audio-only.tsrename to server/tests/api/transcoding/audio-only.tsdiff --git a/server/tests/api/videos/video-create-transcoding.ts b/server/tests/api/transcoding/create-transcoding.tssimilarity index 100%rename from server/tests/api/videos/video-create-transcoding.tsrename to server/tests/api/transcoding/create-transcoding.tsdiff --git a/server/tests/api/videos/video-hls.ts b/server/tests/api/transcoding/hls.tssimilarity index 100%rename from server/tests/api/videos/video-hls.tsrename to server/tests/api/transcoding/hls.tsdiff --git a/server/tests/api/transcoding/index.ts b/server/tests/api/transcoding/index.tsnew file mode 100644index 0000000000..8a0a1d787f--- /dev/null+++ b/server/tests/api/transcoding/index.ts@@ -0,0 +1,5 @@+export * from './audio-only'+export * from './create-transcoding'+export * from './hls'+export * from './transcoder'+export * from './video-editor'diff --git a/server/tests/api/videos/video-transcoder.ts b/server/tests/api/transcoding/transcoder.tssimilarity index 100%rename from server/tests/api/videos/video-transcoder.tsrename to server/tests/api/transcoding/transcoder.tsdiff --git a/server/tests/api/videos/video-editor.ts b/server/tests/api/transcoding/video-editor.tssimilarity index 100%rename from server/tests/api/videos/video-editor.tsrename to server/tests/api/transcoding/video-editor.tsdiff --git a/server/tests/api/videos/index.ts b/server/tests/api/videos/index.tsindex 72e6ae2b4b..7dc8263535 100644--- a/server/tests/api/videos/index.ts+++ b/server/tests/api/videos/index.ts@@ -1,4 +1,3 @@-import './audio-only'import './multiple-servers'import './resumable-upload'import './single-server'@@ -6,18 +5,14 @@ import './video-captions'import './video-change-ownership'import './video-channels'import './video-comments'-import './video-create-transcoding'import './video-description'-import './video-editor'import './video-files'-import './video-hls'import './video-imports'import './video-nsfw'import './video-playlists'import './video-playlist-thumbnails'import './video-privacy'import './video-schedule-update'-import './video-transcoder'import './videos-common-filters'import './videos-history'import './videos-overview'