From 72096cb375c6db931b11cd6ecac97f87ca04a295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=8E=E5=A3=B0?= Date: Thu, 27 Jun 2024 13:20:09 +0800 Subject: [PATCH] ci: retry npm test --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7fd78dfd..65bf5ad8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,4 +28,8 @@ jobs: cache: 'npm' - run: npm ci - run: npm run build --if-present - - run: npm test + - uses: nick-fields/retry@v3 + with: + timeout_minutes: 10 + max_attempts: 3 + command: npm test