Execute external tests on schedule

pull/3011/head
Chocobozzz 2020-07-31 09:13:13 +02:00 committed by Chocobozzz
parent f9d2deae3a
commit f9e1ca7087
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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