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
35 image: chocobozzz/s3-ninja
42 test_suite: [ types-package, client, api-1, api-2, api-3, api-4, cli-plugin, lint, external-plugins ]
47 NODE_PENDING_JOB_WAIT: 250
48 ENABLE_OBJECT_STORAGE_TESTS: true
51 - uses: actions/checkout@v2
53 - uses: './.github/actions/reusable-prepare-peertube-build'
57 - uses: './.github/actions/reusable-prepare-peertube-run'
59 - name: Cache fixtures
60 uses: actions/cache@v2
64 key: ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-${{ hashFiles('fixtures/*') }}
66 ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-
67 ${{ runner.OS }}-fixtures-
70 - name: Set env test variable (schedule)
71 if: github.event_name != 'schedule'
73 echo "DISABLE_HTTP_IMPORT_TESTS=true" >> $GITHUB_ENV
76 # external-plugins tests only run on schedule
77 if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins'
78 run: npm run ci -- ${{ matrix.test_suite }}
80 - name: Display errors
84 test -f dist/scripts/parse-log.js && \
85 cat *-ci.log | uniq -c && \
86 NODE_ENV=test node dist/scripts/parse-log.js -l error -f artifacts/*.log \
88 echo "parse-log.js script does not exist, skipping."
91 uses: actions/upload-artifact@v2
94 name: test-storages-${{ matrix.test_suite }}