From f9e1ca7087fc855daa62d64f19225f57632811d3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 31 Jul 2020 09:13:13 +0200 Subject: [PATCH] Execute external tests on schedule --- .github/workflows/test.yml | 5 +++-- scripts/ci.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0c31b73fc..03b925701 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 c735c8d5c..486666c6a 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