12 runs-on: ubuntu-latest
25 POSTGRES_USER: peertube
26 POSTGRES_HOST_AUTH_METHOD: trust
29 image: rroemhild/test-openldap
36 test_suite: [ misc, api-1, api-2, api-3, api-4, cli, lint, external-plugins ]
41 NODE_PENDING_JOB_WAIT: 2000
44 - uses: actions/checkout@v2
47 uses: actions/setup-node@v1
51 - name: Setup system dependencies
53 sudo apt-get install postgresql-client-common redis-tools parallel
54 wget --quiet --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-4.0.3-64bit-static.tar.xz"
55 tar xf ffmpeg-release-4.0.3-64bit-static.tar.xz
57 cp ffmpeg-*/{ffmpeg,ffprobe} $HOME/bin
58 echo "::add-path::$HOME/bin"
60 - name: Cache Node.js modules
61 uses: actions/cache@v2
66 key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
68 ${{ runner.OS }}-node-
71 - name: Install dependencies
72 run: yarn install --frozen-lockfile
74 - name: Set env test variable (schedule)
75 if: github.event_name != 'schedule'
77 echo "::set-env name=DISABLE_HTTP_IMPORT_TESTS::true"
78 echo "::set-env name=DISABLE_EXTERNAL_PLUGINS_TESTS::true"
81 run: NODE_PENDING_JOB_WAIT=2000 npm run ci -- ${{ matrix.test_suite }}
84 uses: actions/upload-artifact@v2
87 name: test-storages-${{ matrix.test_suite }}