chore: add github-retry to unit tests (#7276)

* chore: add github-retry to unit tests

* chore: add timeout_minutes
This commit is contained in:
Jack Franklin 2021-05-26 14:30:16 +01:00 committed by GitHub
parent cb038cd401
commit 457651d0a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,10 +49,13 @@ jobs:
npm run test-types-file
- name: Run unit tests
uses: nick-invision/retry@v2
env:
CHROMIUM: true
run: |
xvfb-run --auto-servernum npm run unit
with:
max_attempts: 3
command: xvfb-run --auto-servernum npm run unit
timeout_minutes: 10
- name: Run unit tests with coverage
env:
@ -62,11 +65,15 @@ jobs:
xvfb-run --auto-servernum npm run assert-unit-coverage
- name: Run unit tests on Firefox
uses: nick-invision/retry@v2
env:
FIREFOX: true
MOZ_WEBRENDER: 0
run: |
xvfb-run --auto-servernum npm run funit
with:
max_attempts: 3
timeout_minutes: 10
command: xvfb-run --auto-servernum npm run funit
- name: Run browser tests
run: |
npm run test-browser
@ -115,11 +122,11 @@ jobs:
npm run unit
- name: Run unit tests on Firefox
env:
FIREFOX: true
MOZ_WEBRENDER: 0
run: |
npm run funit
uses: nick-invision/retry@v2
with:
max_attempts: 3
timeout_minutes: 10
command: npm run funit
windows:
# https://github.com/actions/virtual-environments#available-environments
@ -158,8 +165,11 @@ jobs:
npm run unit
- name: Run unit tests on Firefox
uses: nick-invision/retry@v2
env:
FIREFOX: true
MOZ_WEBRENDER: 0
run: |
npm run funit
with:
max_attempts: 3
timeout_minutes: 10
command: npm run funit