]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - .github/workflows/test.yml
Correctly test ldap
[github/Chocobozzz/PeerTube.git] / .github / workflows / test.yml
index a2f93ce3f9b1bc6068dff7b36ee385c431f63d13..0c31b73fcbc8f22e09ed490e15459864023bfeef 100644 (file)
@@ -1,6 +1,10 @@
 name: Test Suite
 
-on: [push, pull_request]
+on:
+  push:
+  pull_request:
+  schedule:
+    - cron: '0 0 * * 1-5'
 
 jobs:
 
@@ -21,15 +25,19 @@ jobs:
           POSTGRES_USER: peertube
           POSTGRES_HOST_AUTH_METHOD: trust
 
+      ldap:
+        image: rroemhild/test-openldap
+        ports:
+          - 389:389
+
     strategy:
       fail-fast: false
       matrix:
-        test_suite: [ misc, api-1, api-2, api-3, api-4, cli, lint ]
+        test_suite: [ misc, api-1, api-2, api-3, api-4, cli, lint, external-plugins ]
 
     env:
       PGUSER: peertube
       PGHOST: localhost
-      DISABLE_HTTP_IMPORT_TESTS: true
       NODE_PENDING_JOB_WAIT: 2000
 
     steps:
@@ -42,7 +50,7 @@ jobs:
 
       - name: Setup system dependencies
         run: |
-          sudo apt-get install postgresql-client-common redis-tools
+          sudo apt-get install postgresql-client-common redis-tools parallel
           wget --quiet --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-4.0.3-64bit-static.tar.xz"
           tar xf ffmpeg-release-4.0.3-64bit-static.tar.xz
           mkdir -p $HOME/bin
@@ -63,8 +71,11 @@ jobs:
       - name: Install dependencies
         run: yarn install --frozen-lockfile
 
-      - name: Test
-        run: echo $PATH
+      - name: Set env test variable (schedule)
+        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
         run: NODE_PENDING_JOB_WAIT=2000 npm run ci -- ${{ matrix.test_suite }}