Skip to content

Commit

Permalink
Add several retries for the test run before it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIMkaRU committed Apr 30, 2024
1 parent 33e7e51 commit c1388fd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
linux-test-runner:
name: Linux Test Runner
timeout-minutes: 30
timeout-minutes: 90
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand All @@ -31,7 +31,14 @@ jobs:
- name: Install deps
run: npm i
- name: Run tests
run: npm test -- --reporter=json --reporter-option output=test-report.json
uses: nick-fields/retry@v3
continue-on-error: false
with:
timeout_minutes: 20
retry_wait_seconds: 10
max_attempts: 3
retry_on: any
command: npm test -- --reporter=json --reporter-option output=test-report.json
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
Expand Down

0 comments on commit c1388fd

Please sign in to comment.