Skip to content

Commit b650fe4

Browse files
committed
ci: retry test:browser step
1 parent 1d64b34 commit b650fe4

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,20 @@ jobs:
6868
run: pnpm exec playwright install chromium
6969

7070
- name: Run "${{ matrix.command }}"
71+
if: matrix.command != 'test:browser'
7172
run: pnpm run ${{ matrix.command }}
7273

74+
# Source - https://stackoverflow.com/a/71583518
75+
# Posted by VonC, modified by community. See post 'Timeline' for change history
76+
# Retrieved 2026-02-10, License - CC BY-SA 4.0
77+
- name: Run 'test:browser' with retry
78+
if: matrix.command == 'test:browser'
79+
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4.0.0
80+
with:
81+
timeout_minutes: 10
82+
max_attempts: 3
83+
command: pnpm run ${{ matrix.command }}
84+
7385
- name: Upload coverage reports to Codecov
7486
if: matrix.command == 'test:cov'
7587
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0

0 commit comments

Comments
 (0)