diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98b3bb26..62679648 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -30,7 +30,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: diff --git a/package.json b/package.json index bc495cb1..442e81a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bfx-report", - "version": "4.10.2", + "version": "4.10.3", "description": "Reporting tool", "main": "worker.js", "license": "Apache-2.0", diff --git a/test/1-api.spec.js b/test/1-api.spec.js index 40c46358..76cc15f9 100644 --- a/test/1-api.spec.js +++ b/test/1-api.spec.js @@ -41,7 +41,7 @@ describe('API', () => { }) after(async function () { - this.timeout(5000) + this.timeout(20000) try { await mockRESTv2Srv.close() diff --git a/test/2-api-filter.spec.js b/test/2-api-filter.spec.js index 282d938b..7c453eaf 100644 --- a/test/2-api-filter.spec.js +++ b/test/2-api-filter.spec.js @@ -44,7 +44,7 @@ const auth = { describe('API filter', () => { before(async function () { - this.timeout(5000) + this.timeout(20000) mockRESTv2Srv = createMockRESTv2SrvWithDate(start, end, 10) @@ -58,7 +58,7 @@ describe('API filter', () => { }) after(async function () { - this.timeout(5000) + this.timeout(20000) await stopEnvironment() await rmDB(dbDirPath) diff --git a/test/3-report-signature.spec.js b/test/3-report-signature.spec.js index 605181da..2ed58246 100644 --- a/test/3-report-signature.spec.js +++ b/test/3-report-signature.spec.js @@ -68,7 +68,7 @@ describe('Signature', () => { }) after(async function () { - this.timeout(5000) + this.timeout(20000) await stopEnvironment() await rmDB(dbDirPath)