chore: run only unit tests with coverage in CI

This will verify coverage and unit tests without duplicating unit runs.
This commit is contained in:
Randolf J 2022-06-15 12:48:20 +02:00
parent ce0dd25349
commit f0c17378a0

View File

@ -62,21 +62,15 @@ jobs:
npm run commitlint
if: github.event_name != 'pull_request'
- name: Run unit tests
- name: Run unit tests with coverage
uses: nick-invision/retry@v2
env:
CHROMIUM: true
with:
max_attempts: 3
command: xvfb-run --auto-servernum npm run test:unit
command: xvfb-run --auto-servernum npm run test:unit:coverage
timeout_minutes: 10
- name: Run unit tests with coverage
env:
CHROMIUM: true
run: |
xvfb-run --auto-servernum npm run test:unit:coverage
- name: Run unit tests on Firefox
uses: nick-invision/retry@v2
env: