branches:
- develop
- master
+ - ci
+ - next
pull_request:
types: [synchronize, opened]
schedule:
env:
PGUSER: peertube
PGHOST: localhost
- NODE_PENDING_JOB_WAIT: 2000
+ NODE_PENDING_JOB_WAIT: 250
steps:
- uses: actions/checkout@v2
- name: Run Test
# external-plugins tests only run on schedule
if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins'
- run: NODE_PENDING_JOB_WAIT=2000 npm run ci -- ${{ matrix.test_suite }}
+ run: npm run ci -- ${{ matrix.test_suite }}
- name: Display errors
if: ${{ always() }}
run: |
- (test -f dist/scripts/parse-log.js && NODE_ENV=test node dist/scripts/parse-log.js -l error -f artifacts/*.log) || \
+ ( \
+ test -f dist/scripts/parse-log.js && \
+ cat *-ci.log | uniq -c && \
+ NODE_ENV=test node dist/scripts/parse-log.js -l error -f artifacts/*.log \
+ ) || \
echo "parse-log.js script does not exist, skipping."
- name: Upload logs