From af86b69d0d784ca92f02b5f321c6103deda32707 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Fri, 3 Mar 2023 15:17:00 +0100 Subject: [PATCH] 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. --- .github/workflows/main.yml | 3 ++- .github/workflows/release-insiders.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index efac0d7..a7e4dd5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/.github/workflows/release-insiders.yml b/.github/workflows/release-insiders.yml index 85ea848..4016c30 100644 --- a/.github/workflows/release-insiders.yml +++ b/.github/workflows/release-insiders.yml @@ -40,7 +40,8 @@ jobs: CI: true - name: Test - run: npm test + run: | + yarn test || yarn test || yarn test || exit 1 env: CI: true