11 types: [synchronize, opened]
18 runs-on: ubuntu-latest
31 POSTGRES_USER: peertube
32 POSTGRES_HOST_AUTH_METHOD: trust
35 image: chocobozzz/docker-test-openldap
42 test_suite: [ client, api-1, api-2, api-3, api-4, cli-plugin, lint, external-plugins ]
47 NODE_PENDING_JOB_WAIT: 250
50 - uses: actions/checkout@v2
53 uses: actions/setup-node@v1
57 - name: Setup system dependencies
59 sudo apt-get install postgresql-client-common redis-tools parallel
60 wget --quiet --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-4.3.1-64bit-static.tar.xz"
61 tar xf ffmpeg-release-4.3.1-64bit-static.tar.xz
63 cp ffmpeg-*/{ffmpeg,ffprobe} $HOME/bin
64 echo "$HOME/bin" >> $GITHUB_PATH
66 - name: Cache Node.js modules
67 uses: actions/cache@v2
71 key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
73 ${{ runner.OS }}-node-
76 - name: Cache fixtures
77 uses: actions/cache@v2
81 key: ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-${{ hashFiles('fixtures/*') }}
83 ${{ runner.OS }}-fixtures-${{ matrix.test_suite }}-
84 ${{ runner.OS }}-fixtures-
87 - name: Install dependencies
88 run: yarn install --frozen-lockfile
90 - name: Set env test variable (schedule)
91 if: github.event_name != 'schedule'
93 echo "DISABLE_HTTP_IMPORT_TESTS=true" >> $GITHUB_ENV
96 # external-plugins tests only run on schedule
97 if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins'
98 run: npm run ci -- ${{ matrix.test_suite }}
100 - name: Display errors
104 test -f dist/scripts/parse-log.js && \
105 cat *-ci.log | uniq -c && \
106 NODE_ENV=test node dist/scripts/parse-log.js -l error -f artifacts/*.log \
108 echo "parse-log.js script does not exist, skipping."
111 uses: actions/upload-artifact@v2
114 name: test-storages-${{ matrix.test_suite }}