diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-31 09:13:13 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-07-31 11:32:04 +0200 |
commit | f9e1ca7087fc855daa62d64f19225f57632811d3 (patch) | |
tree | 05ec3d2bf604f3c69ec6dad7ce96acb4ee0713d3 | |
parent | f9d2deae3a826b2f3fdcb6d0b29ef06f21a93c61 (diff) | |
download | PeerTube-f9e1ca7087fc855daa62d64f19225f57632811d3.tar.gz PeerTube-f9e1ca7087fc855daa62d64f19225f57632811d3.tar.zst PeerTube-f9e1ca7087fc855daa62d64f19225f57632811d3.zip |
Execute external tests on schedule
-rw-r--r-- | .github/workflows/test.yml | 5 | ||||
-rwxr-xr-x | 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: | |||
4 | push: | 4 | push: |
5 | pull_request: | 5 | pull_request: |
6 | schedule: | 6 | schedule: |
7 | - cron: '0 0 * * 1-5' | 7 | - cron: '0 3 * * 1-5' |
8 | 8 | ||
9 | jobs: | 9 | jobs: |
10 | 10 | ||
@@ -75,9 +75,10 @@ jobs: | |||
75 | if: github.event_name != 'schedule' | 75 | if: github.event_name != 'schedule' |
76 | run: | | 76 | run: | |
77 | echo "::set-env name=DISABLE_HTTP_IMPORT_TESTS::true" | 77 | echo "::set-env name=DISABLE_HTTP_IMPORT_TESTS::true" |
78 | echo "::set-env name=DISABLE_EXTERNAL_PLUGINS_TESTS::true" | ||
79 | 78 | ||
80 | - name: Run Test | 79 | - name: Run Test |
80 | # external-plugins tests only run on schedule | ||
81 | if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins' | ||
81 | run: NODE_PENDING_JOB_WAIT=2000 npm run ci -- ${{ matrix.test_suite }} | 82 | run: NODE_PENDING_JOB_WAIT=2000 npm run ci -- ${{ matrix.test_suite }} |
82 | 83 | ||
83 | - name: Upload logs | 84 | - 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 | |||
37 | pluginsFiles=$(findTestFiles server/tests/plugins) | 37 | pluginsFiles=$(findTestFiles server/tests/plugins) |
38 | miscFiles="server/tests/client.ts server/tests/misc-endpoints.ts" | 38 | miscFiles="server/tests/client.ts server/tests/misc-endpoints.ts" |
39 | 39 | ||
40 | TS_NODE_FILES=true MOCHA_PARALLEL=true runTest 2 $feedsFiles $helperFiles $pluginsFiles $miscFiles | 40 | TS_NODE_FILES=true runTest 1 $feedsFiles $helperFiles $pluginsFiles $miscFiles |
41 | elif [ "$1" = "cli" ]; then | 41 | elif [ "$1" = "cli" ]; then |
42 | npm run build:server | 42 | npm run build:server |
43 | npm run setup:cli | 43 | npm run setup:cli |