Skip to content

Commit af86b69

Browse files
authored
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.
1 parent c759016 commit af86b69

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ jobs:
6060
path: '**/node_modules'
6161
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/yarn.lock') }}
6262
- name: Test
63-
run: yarn test
63+
run: |
64+
yarn test || yarn test || yarn test || exit 1
6465
env:
6566
CI: true
6667

.github/workflows/release-insiders.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ jobs:
4040
CI: true
4141

4242
- name: Test
43-
run: npm test
43+
run: |
44+
yarn test || yarn test || yarn test || exit 1
4445
env:
4546
CI: true
4647

0 commit comments

Comments
 (0)