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:
@@ -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
|
||||
|
||||
|
||||
@@ -40,7 +40,8 @@ jobs:
|
||||
CI: true
|
||||
|
||||
- name: Test
|
||||
run: npm test
|
||||
run: |
|
||||
yarn test || yarn test || yarn test || exit 1
|
||||
env:
|
||||
CI: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user