Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Execute external tests on schedule

Chocobozzzf9e1ca7087fc
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 0c31b73fcb..03b9257012 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -4,7 +4,7 @@ on:
push:
pull_request:
schedule:
- - cron: '0 0 * * 1-5'
+ - cron: '0 3 * * 1-5'
jobs:
@@ -75,9 +75,10 @@ jobs:
if: github.event_name != 'schedule'
run: |
echo "::set-env name=DISABLE_HTTP_IMPORT_TESTS::true"
- echo "::set-env name=DISABLE_EXTERNAL_PLUGINS_TESTS::true"
- name: Run Test
+ # external-plugins tests only run on schedule
+ if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins'
run: NODE_PENDING_JOB_WAIT=2000 npm run ci -- ${{ matrix.test_suite }}
- name: Upload logs
diff --git a/scripts/ci.sh b/scripts/ci.sh
index c735c8d5ca..486666c6a9 100755
--- a/scripts/ci.sh
+++ b/scripts/ci.sh
@@ -37,7 +37,7 @@ if [ "$1" = "misc" ]; then
pluginsFiles=$(findTestFiles server/tests/plugins)
miscFiles="server/tests/client.ts server/tests/misc-endpoints.ts"
- TS_NODE_FILES=true MOCHA_PARALLEL=true runTest 2 $feedsFiles $helperFiles $pluginsFiles $miscFiles
+ TS_NODE_FILES=true runTest 1 $feedsFiles $helperFiles $pluginsFiles $miscFiles
elif [ "$1" = "cli" ]; then
npm run build:server
npm run setup:cli