chore: add github-retry to unit tests (#7276)
* chore: add github-retry to unit tests * chore: add timeout_minutes
This commit is contained in:
parent
cb038cd401
commit
457651d0a3
32
.github/workflows/main.yml
vendored
32
.github/workflows/main.yml
vendored
@ -49,10 +49,13 @@ jobs:
|
|||||||
npm run test-types-file
|
npm run test-types-file
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
|
uses: nick-invision/retry@v2
|
||||||
env:
|
env:
|
||||||
CHROMIUM: true
|
CHROMIUM: true
|
||||||
run: |
|
with:
|
||||||
xvfb-run --auto-servernum npm run unit
|
max_attempts: 3
|
||||||
|
command: xvfb-run --auto-servernum npm run unit
|
||||||
|
timeout_minutes: 10
|
||||||
|
|
||||||
- name: Run unit tests with coverage
|
- name: Run unit tests with coverage
|
||||||
env:
|
env:
|
||||||
@ -62,11 +65,15 @@ jobs:
|
|||||||
xvfb-run --auto-servernum npm run assert-unit-coverage
|
xvfb-run --auto-servernum npm run assert-unit-coverage
|
||||||
|
|
||||||
- name: Run unit tests on Firefox
|
- name: Run unit tests on Firefox
|
||||||
|
uses: nick-invision/retry@v2
|
||||||
env:
|
env:
|
||||||
FIREFOX: true
|
FIREFOX: true
|
||||||
MOZ_WEBRENDER: 0
|
MOZ_WEBRENDER: 0
|
||||||
run: |
|
with:
|
||||||
xvfb-run --auto-servernum npm run funit
|
max_attempts: 3
|
||||||
|
timeout_minutes: 10
|
||||||
|
command: xvfb-run --auto-servernum npm run funit
|
||||||
|
|
||||||
- name: Run browser tests
|
- name: Run browser tests
|
||||||
run: |
|
run: |
|
||||||
npm run test-browser
|
npm run test-browser
|
||||||
@ -115,11 +122,11 @@ jobs:
|
|||||||
npm run unit
|
npm run unit
|
||||||
|
|
||||||
- name: Run unit tests on Firefox
|
- name: Run unit tests on Firefox
|
||||||
env:
|
uses: nick-invision/retry@v2
|
||||||
FIREFOX: true
|
with:
|
||||||
MOZ_WEBRENDER: 0
|
max_attempts: 3
|
||||||
run: |
|
timeout_minutes: 10
|
||||||
npm run funit
|
command: npm run funit
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
# https://github.com/actions/virtual-environments#available-environments
|
# https://github.com/actions/virtual-environments#available-environments
|
||||||
@ -158,8 +165,11 @@ jobs:
|
|||||||
npm run unit
|
npm run unit
|
||||||
|
|
||||||
- name: Run unit tests on Firefox
|
- name: Run unit tests on Firefox
|
||||||
|
uses: nick-invision/retry@v2
|
||||||
env:
|
env:
|
||||||
FIREFOX: true
|
FIREFOX: true
|
||||||
MOZ_WEBRENDER: 0
|
MOZ_WEBRENDER: 0
|
||||||
run: |
|
with:
|
||||||
npm run funit
|
max_attempts: 3
|
||||||
|
timeout_minutes: 10
|
||||||
|
command: npm run funit
|
||||||
|
Loading…
Reference in New Issue
Block a user