Retry e2e tests if they fail

This commit is contained in:
Oliver Blanthorn 2020-06-17 14:20:18 +01:00
parent c0040f8423
commit f87f5b59af
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -10,6 +10,7 @@ on:
jobs: jobs:
test: test:
timeout-minutes: 120
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -56,10 +57,14 @@ jobs:
choco install firefox-dev --pre choco install firefox-dev --pre
echo "::add-path::C:\Program Files\Firefox Dev Edition" echo "::add-path::C:\Program Files\Firefox Dev Edition"
- name: Test (Firefox) - name: Test (Firefox)
uses: nick-invision/retry@v1
if: matrix.browser != 'chrome' if: matrix.browser != 'chrome'
env: env:
HEADLESS: 1 HEADLESS: 1
run: | with:
max_attempts: 6
timeout_minutes: 10
command: |
yarn make-zip yarn make-zip
yarn jest || yarn jest || yarn jest || yarn jest || yarn jest || yarn jest || yarn jest || yarn jest yarn jest || yarn jest || yarn jest || yarn jest || yarn jest || yarn jest || yarn jest || yarn jest
# - name: Test (Chrome, Linux) # - name: Test (Chrome, Linux)