10 types: [synchronize, opened]
17 runs-on: ubuntu-latest
30 POSTGRES_USER: peertube
31 POSTGRES_HOST_AUTH_METHOD: trust
34 image: chocobozzz/docker-test-openldap
41 test_suite: [ misc, api-1, api-2, api-3, api-4, cli, lint, external-plugins ]
46 NODE_PENDING_JOB_WAIT: 500
49 - uses: actions/checkout@v2
52 uses: actions/setup-node@v1
56 - name: Setup system dependencies
58 sudo apt-get install postgresql-client-common redis-tools parallel
59 wget --quiet --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-4.3.1-64bit-static.tar.xz"
60 tar xf ffmpeg-release-4.3.1-64bit-static.tar.xz
62 cp ffmpeg-*/{ffmpeg,ffprobe} $HOME/bin
63 echo "$HOME/bin" >> $GITHUB_PATH
65 - name: Cache Node.js modules
66 uses: actions/cache@v2
70 key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
72 ${{ runner.OS }}-node-
75 - name: Cache fixtures
76 uses: actions/cache@v2
80 key: ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-${{ hashFiles('fixtures/*') }}
82 ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-
83 ${{ runner.OS }}-fixtures-
86 - name: Install dependencies
87 run: yarn install --frozen-lockfile
89 - name: Set env test variable (schedule)
90 if: github.event_name != 'schedule'
92 echo "DISABLE_HTTP_IMPORT_TESTS=true" >> $GITHUB_ENV
95 # external-plugins tests only run on schedule
96 if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins'
97 run: npm run ci -- ${{ matrix.test_suite }}
99 - name: Display errors
103 test -f dist/scripts/parse-log.js && \
104 cat *-ci.log | uniq -c && \
105 NODE_ENV=test node dist/scripts/parse-log.js -l error -f artifacts/*.log \
107 echo "parse-log.js script does not exist, skipping."
110 uses: actions/upload-artifact@v2
113 name: test-storages-${{ matrix.test_suite }}