retry tests 3 times before failing (#2335)

Some tests are relying on timing specific tests and if the server
(GitHub Actions) is a bit busy, then this can result in flakey tests.

One day we will switch to tests in a real browser, but in the meantime
this should be enough.
This commit is contained in:
Robin Malfait
2023-03-03 15:17:00 +01:00
committed by GitHub
parent c759016fa3
commit af86b69d0d
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -60,7 +60,8 @@ jobs:
path: '**/node_modules'
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Test
run: yarn test
run: |
yarn test || yarn test || yarn test || exit 1
env:
CI: true
+2 -1
View File
@@ -40,7 +40,8 @@ jobs:
CI: true
- name: Test
run: npm test
run: |
yarn test || yarn test || yarn test || exit 1
env:
CI: true