9 types: [synchronize, opened]
16 runs-on: ubuntu-latest
29 POSTGRES_USER: peertube
30 POSTGRES_HOST_AUTH_METHOD: trust
33 image: rroemhild/test-openldap
40 test_suite: [ misc, api-1, api-2, api-3, api-4, cli, lint, external-plugins ]
45 NODE_PENDING_JOB_WAIT: 2000
48 - uses: actions/checkout@v2
51 uses: actions/setup-node@v1
55 - name: Setup system dependencies
57 sudo apt-get install postgresql-client-common redis-tools parallel
58 wget --quiet --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-4.0.3-64bit-static.tar.xz"
59 tar xf ffmpeg-release-4.0.3-64bit-static.tar.xz
61 cp ffmpeg-*/{ffmpeg,ffprobe} $HOME/bin
62 echo "::add-path::$HOME/bin"
64 - name: Cache Node.js modules
65 uses: actions/cache@v2
69 key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
71 ${{ runner.OS }}-node-
74 - name: Cache fixtures
75 uses: actions/cache@v2
79 key: ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-${{ hashFiles('fixtures/*') }}
81 ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-
82 ${{ runner.OS }}-fixtures-
85 - name: Install dependencies
86 run: yarn install --frozen-lockfile
88 - name: Set env test variable (schedule)
89 if: github.event_name != 'schedule'
91 echo "::set-env name=DISABLE_HTTP_IMPORT_TESTS::true"
94 # external-plugins tests only run on schedule
95 if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins'
96 run: NODE_PENDING_JOB_WAIT=2000 npm run ci -- ${{ matrix.test_suite }}
99 uses: actions/upload-artifact@v2
102 name: test-storages-${{ matrix.test_suite }}