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, api-5, cli-plugin, lint, external-plugins ]
47 NODE_PENDING_JOB_WAIT: 250
48 ENABLE_OBJECT_STORAGE_TESTS: true
49 OBJECT_STORAGE_SCALEWAY_KEY_ID: ${{ secrets.OBJECT_STORAGE_SCALEWAY_KEY_ID }}
50 OBJECT_STORAGE_SCALEWAY_ACCESS_KEY: ${{ secrets.OBJECT_STORAGE_SCALEWAY_ACCESS_KEY }}
51 YOUTUBE_DL_DOWNLOAD_BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54 - uses: actions/checkout@v3
56 - uses: './.github/actions/reusable-prepare-peertube-build'
60 - uses: './.github/actions/reusable-prepare-peertube-run'
62 - name: Cache fixtures
63 uses: actions/cache@v3
67 key: ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-${{ hashFiles('fixtures/*') }}
69 ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-
70 ${{ runner.OS }}-fixtures-
73 - name: Set env test variable (schedule)
74 if: github.event_name != 'schedule'
76 echo "DISABLE_HTTP_IMPORT_TESTS=true" >> $GITHUB_ENV
79 # external-plugins tests only run on schedule
80 if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins'
82 AKISMET_KEY: ${{ secrets.AKISMET_KEY }}
83 run: npm run ci -- ${{ matrix.test_suite }}
85 - name: Display errors
89 test -f dist/scripts/parse-log.js && \
90 NODE_ENV=test node dist/scripts/parse-log.js -l error -f artifacts/*.log \
92 echo "parse-log.js script does not exist, skipping."
95 uses: actions/upload-artifact@v3
98 name: test-storages-${{ matrix.test_suite }}