From e4c9b6cc1cc92e373229180e4a003ff1a86092b9 Mon Sep 17 00:00:00 2001 From: Wesley Luyten Date: Fri, 20 Dec 2024 11:30:36 -0600 Subject: [PATCH] chore: add auto retries for test GH action job --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c231f1427..441e256e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,8 +73,13 @@ jobs: - run: yarn clean - name: Install playwright browsers run: npx playwright install --with-deps - # run yarn and pass through `-- --all` to turborepo - - run: yarn test -- -- --all + # Retry the test command up to 3 times with a timeout of 10 minutes + - uses: nick-fields/retry@v2 + with: + timeout_minutes: 10 + max_attempts: 3 + # run yarn and pass through `-- --all` to turborepo + command: yarn test -- -- --all - name: Upload coverage to Codecov uses: codecov/codecov-action@v2.1.0 with: