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 }}
53 - uses: actions/checkout@v3
55 - uses: './.github/actions/reusable-prepare-peertube-build'
59 - uses: './.github/actions/reusable-prepare-peertube-run'
61 - name: Cache fixtures
62 uses: actions/cache@v3
66 key: ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-${{ hashFiles('fixtures/*') }}
68 ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-
69 ${{ runner.OS }}-fixtures-
72 - name: Set env test variable (schedule)
73 if: github.event_name != 'schedule'
75 echo "DISABLE_HTTP_IMPORT_TESTS=true" >> $GITHUB_ENV
78 # external-plugins tests only run on schedule
79 if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins'
81 AKISMET_KEY: ${{ secrets.AKISMET_KEY }}
82 run: npm run ci -- ${{ matrix.test_suite }}
84 - name: Display errors
88 test -f dist/scripts/parse-log.js && \
89 NODE_ENV=test node dist/scripts/parse-log.js -l error -f artifacts/*.log \
91 echo "parse-log.js script does not exist, skipping."
94 uses: actions/upload-artifact@v3
97 name: test-storages-${{ matrix.test_suite }}