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 ]
34 - uses: actions/checkout@v2
37 uses: actions/setup-node@v1
41 - name: Setup system dependencies
43 sudo apt-get install postgresql-client-common redis-tools
44 wget --quiet --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-4.0.3-64bit-static.tar.xz"
45 tar xf ffmpeg-release-4.0.3-64bit-static.tar.xz
47 cp ffmpeg-*/{ffmpeg,ffprobe} $HOME/bin
48 echo "::add-path::$HOME/bin"
50 - name: Cache Node.js modules
51 uses: actions/cache@v2
54 key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
56 ${{ runner.OS }}-node-
59 - name: Install dependencies
60 run: yarn install --frozen-lockfile
66 run: NODE_PENDING_JOB_WAIT=2000 npm run ci -- ${{ matrix.test_suite }}
69 uses: actions/upload-artifact@v2