From d5831be093d862e02cf56111bc58c4ce53b47a5e Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Tue, 20 Oct 2020 23:57:11 +0800 Subject: [PATCH] CI: auto retry backend tests It depends on the other end sometimes as tests contain URL fetching. Retry tests automatically to reduce flakiness. --- .github/workflows/test-backend.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml index dddacfa7..4f3a037a 100644 --- a/.github/workflows/test-backend.yml +++ b/.github/workflows/test-backend.yml @@ -28,7 +28,7 @@ jobs: - run: npm ci --no-optional - run: npm run build - run: npm run start -- --help - - run: npm test + - run: npm test || npm test || npm test - uses: codecov/codecov-action@v1 if: matrix.node == 14