diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-30 16:54:40 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-07-31 11:32:04 +0200 |
commit | a613eea4c3987f5a2fba729a24ecaf2373624194 (patch) | |
tree | 146d546bfeb8be361f504db6a1d6cfcd79140414 /.github | |
parent | 12e8547f07d9ef28ede3141da11c8c3de8549f7e (diff) | |
download | PeerTube-a613eea4c3987f5a2fba729a24ecaf2373624194.tar.gz PeerTube-a613eea4c3987f5a2fba729a24ecaf2373624194.tar.zst PeerTube-a613eea4c3987f5a2fba729a24ecaf2373624194.zip |
DISABLE_HTTP_IMPORT_TESTS on non scheduled tests
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test.yml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9c90e6437..28ebf2ca9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml | |||
@@ -1,6 +1,10 @@ | |||
1 | name: Test Suite | 1 | name: Test Suite |
2 | 2 | ||
3 | on: [push, pull_request] | 3 | on: |
4 | push: | ||
5 | pull_request: | ||
6 | schedule: | ||
7 | - cron: '0 0 * * 1-5' | ||
4 | 8 | ||
5 | jobs: | 9 | jobs: |
6 | 10 | ||
@@ -34,7 +38,6 @@ jobs: | |||
34 | env: | 38 | env: |
35 | PGUSER: peertube | 39 | PGUSER: peertube |
36 | PGHOST: localhost | 40 | PGHOST: localhost |
37 | DISABLE_HTTP_IMPORT_TESTS: true | ||
38 | NODE_PENDING_JOB_WAIT: 2000 | 41 | NODE_PENDING_JOB_WAIT: 2000 |
39 | 42 | ||
40 | steps: | 43 | steps: |
@@ -68,6 +71,10 @@ jobs: | |||
68 | - name: Install dependencies | 71 | - name: Install dependencies |
69 | run: yarn install --frozen-lockfile | 72 | run: yarn install --frozen-lockfile |
70 | 73 | ||
74 | - name: Set videos import enabled env variable | ||
75 | if: github.event_name != 'schedule' | ||
76 | run: echo "::set-env name=DISABLE_HTTP_IMPORT_TESTS::true" | ||
77 | |||
71 | - name: Run Test | 78 | - name: Run Test |
72 | run: NODE_PENDING_JOB_WAIT=2000 npm run ci -- ${{ matrix.test_suite }} | 79 | run: NODE_PENDING_JOB_WAIT=2000 npm run ci -- ${{ matrix.test_suite }} |
73 | 80 | ||