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: [ 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
54 uses: actions/setup-node@v1
58 - name: Setup system dependencies
60 sudo apt-get install postgresql-client-common redis-tools parallel
61 wget --quiet --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-4.3.1-64bit-static.tar.xz"
62 tar xf ffmpeg-release-4.3.1-64bit-static.tar.xz
64 cp ffmpeg-*/{ffmpeg,ffprobe} $HOME/bin
65 echo "$HOME/bin" >> $GITHUB_PATH
67 - name: Cache Node.js modules
68 uses: actions/cache@v2
72 key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
74 ${{ runner.OS }}-node-
77 - name: Cache fixtures
78 uses: actions/cache@v2
82 key: ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-${{ hashFiles('fixtures/*') }}
84 ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-
85 ${{ runner.OS }}-fixtures-
88 - name: Install dependencies
89 run: yarn install --frozen-lockfile
91 - name: Set env test variable (schedule)
92 if: github.event_name != 'schedule'
94 echo "DISABLE_HTTP_IMPORT_TESTS=true" >> $GITHUB_ENV
97 # external-plugins tests only run on schedule
98 if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins'
99 run: npm run ci -- ${{ matrix.test_suite }}
101 - name: Display errors
105 test -f dist/scripts/parse-log.js && \
106 cat *-ci.log | uniq -c && \
107 NODE_ENV=test node dist/scripts/parse-log.js -l error -f artifacts/*.log \
109 echo "parse-log.js script does not exist, skipping."
112 uses: actions/upload-artifact@v2
115 name: test-storages-${{ matrix.test_suite }}