Merge pull request #2498 from tridactyl/e2e_rerun_more

Rerun more things if build fails
This commit is contained in:
Oliver Blanthorn 2020-06-17 18:34:47 +01:00 committed by GitHub
commit 3082943cfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: |
yarn run clean && 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 }}