Skip to content

Commit 48fb4e7

Browse files
committed
Mitigate flaky tests on Windows CI
1 parent 510d6be commit 48fb4e7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/test-win.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,13 @@ jobs:
4545
- name: Install dependencies with yarn
4646
run: yarn install
4747

48+
# Retry tests up to 3 times due to flaky tests on Windows CI
49+
# https://stackoverflow.com/a/59365905
4850
- name: Jest
49-
run: yarn test:coverage --ci -i --reporters=default --reporters=jest-junit
51+
run: >-
52+
yarn test:coverage --ci -i --reporters=default --reporters=jest-junit ||
53+
yarn test:coverage --ci -i --reporters=default --reporters=jest-junit ||
54+
yarn test:coverage --ci -i --reporters=default --reporters=jest-junit
5055
env:
5156
CI: true
5257

0 commit comments

Comments
 (0)