Rerun more things if build fails

This commit is contained in:
Oliver Blanthorn 2020-06-17 17:32:17 +01:00
parent e6407eefbe
commit 07464f9ef6
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -36,10 +36,9 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-yarn- ${{ runner.os }}-yarn-
- name: Install deps and build extension - name: Install deps
run: | run: |
yarn install yarn install
yarn run build
- name: Install Firefox Dev Edition (Linux) - name: Install Firefox Dev Edition (Linux)
if: matrix.browser == 'firefox' && matrix.os == 'ubuntu' if: matrix.browser == 'firefox' && matrix.os == 'ubuntu'
run: | run: |
@ -57,10 +56,7 @@ 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: Make zip (Firefox) - name: Build and test (Firefox)
if: matrix.browser != 'chrome'
run: yarn make-zip
- name: Test (Firefox)
uses: nick-invision/retry@v1 uses: nick-invision/retry@v1
if: matrix.browser != 'chrome' if: matrix.browser != 'chrome'
env: env:
@ -68,8 +64,9 @@ jobs:
with: with:
max_attempts: 100 max_attempts: 100
timeout_minutes: 10 timeout_minutes: 10
retry_wait_seconds: 1 retry_wait_seconds: 10
command: yarn jest command: |
killall firefox; yarn run build && yarn make-zip && yarn jest
# - name: Test (Chrome, Linux) # - name: Test (Chrome, Linux)
# if: matrix.browser == 'chrome' && matrix.os == 'ubuntu' # if: matrix.browser == 'chrome' && matrix.os == 'ubuntu'
# run: xvfb-run --auto-servernum npm run jest -- ${{ matrix.browser }} || xvfb-run --auto-servernum npm run jest -- ${{ matrix.browser }} # run: xvfb-run --auto-servernum npm run jest -- ${{ matrix.browser }} || xvfb-run --auto-servernum npm run jest -- ${{ matrix.browser }}