From 457651d0a3d2e6a401615cd757f5a59b92cf4f09 Mon Sep 17 00:00:00 2001 From: Jack Franklin Date: Wed, 26 May 2021 14:30:16 +0100 Subject: [PATCH] chore: add github-retry to unit tests (#7276) * chore: add github-retry to unit tests * chore: add timeout_minutes --- .github/workflows/main.yml | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ca368869..51e5d7e8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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