diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index b69ffd64f..91c556273 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -9,7 +9,7 @@ permissions: jobs: test: runs-on: ubuntu-latest - timeout-minutes: 15 + timeout-minutes: 45 strategy: fail-fast: false @@ -82,17 +82,29 @@ jobs: with: name: firewall-node-library-${{ github.sha }} - - name: Run tests with current instrumentation - run: npm run test:ci + - name: Run tests with current instrumentation (max 3 attempts) if: ${{ matrix.new-instrumentation == 'current' }} + uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0 + with: + timeout_minutes: 15 + max_attempts: 3 + command: npm run test:ci - - name: Run tests with new instrumentation in CJS mode - run: npm run test:ci:new + - name: Run tests with new instrumentation in CJS mode (max 3 attempts) if: ${{ matrix.new-instrumentation == 'new' && matrix.mode == 'cjs' }} + uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0 + with: + timeout_minutes: 15 + max_attempts: 3 + command: npm run test:ci:new - - name: Run tests in ESM mode - run: npm run test:esm + - name: Run tests in ESM mode (max 3 attempts) if: ${{ matrix.new-instrumentation == 'new' && matrix.mode == 'esm' }} + uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0 + with: + timeout_minutes: 15 + max_attempts: 3 + command: npm run test:esm - name: "Upload coverage" uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2