3 on: [push, pull_request]
21 POSTGRES_USER: peertube
22 POSTGRES_HOST_AUTH_METHOD: trust
27 test_suite: [ misc, api-1, api-2, api-3, api-4, cli, lint ]
32 DISABLE_HTTP_IMPORT_TESTS: true
33 NODE_PENDING_JOB_WAIT: 2000
36 - uses: actions/checkout@v2
39 uses: actions/setup-node@v1
43 - name: Setup system dependencies
45 sudo apt-get install postgresql-client-common redis-tools parallel
46 wget --quiet --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-4.0.3-64bit-static.tar.xz"
47 tar xf ffmpeg-release-4.0.3-64bit-static.tar.xz
49 cp ffmpeg-*/{ffmpeg,ffprobe} $HOME/bin
50 echo "::add-path::$HOME/bin"
52 - name: Cache Node.js modules
53 uses: actions/cache@v2
58 key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
60 ${{ runner.OS }}-node-
63 - name: Install dependencies
64 run: yarn install --frozen-lockfile
70 run: NODE_PENDING_JOB_WAIT=2000 npm run ci -- ${{ matrix.test_suite }}
73 uses: actions/upload-artifact@v2
76 name: test-storages-${{ matrix.test_suite }}