6 types: [synchronize, opened]
13 runs-on: ubuntu-latest
26 POSTGRES_USER: peertube
27 POSTGRES_HOST_AUTH_METHOD: trust
30 image: chocobozzz/docker-test-openldap
37 test_suite: [ client, api-1, api-2, api-3, api-4, cli-plugin, lint, external-plugins ]
42 NODE_PENDING_JOB_WAIT: 250
45 - uses: actions/checkout@v2
48 uses: actions/setup-node@v1
52 - name: Setup system dependencies
54 sudo apt-get install postgresql-client-common redis-tools parallel
55 wget --quiet --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-4.3.1-64bit-static.tar.xz"
56 tar xf ffmpeg-release-4.3.1-64bit-static.tar.xz
58 cp ffmpeg-*/{ffmpeg,ffprobe} $HOME/bin
59 echo "$HOME/bin" >> $GITHUB_PATH
61 - name: Cache Node.js modules
62 uses: actions/cache@v2
66 key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
68 ${{ runner.OS }}-node-
71 - name: Cache fixtures
72 uses: actions/cache@v2
76 key: ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-${{ hashFiles('fixtures/*') }}
78 ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-
79 ${{ runner.OS }}-fixtures-
82 - name: Install dependencies
83 run: yarn install --frozen-lockfile
85 - name: Set env test variable (schedule)
86 if: github.event_name != 'schedule'
88 echo "DISABLE_HTTP_IMPORT_TESTS=true" >> $GITHUB_ENV
91 # external-plugins tests only run on schedule
92 if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins'
93 run: npm run ci -- ${{ matrix.test_suite }}
95 - name: Display errors
99 test -f dist/scripts/parse-log.js && \
100 cat *-ci.log | uniq -c && \
101 NODE_ENV=test node dist/scripts/parse-log.js -l error -f artifacts/*.log \
103 echo "parse-log.js script does not exist, skipping."
106 uses: actions/upload-artifact@v2
109 name: test-storages-${{ matrix.test_suite }}