diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index baffc525b028..9a097ff663b8 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -202,7 +202,12 @@ jobs: id: cpu-cores uses: SimenB/github-actions-cpu-cores@v2 - name: run tests with coverage - run: yarn jest-coverage --color --config jest.config.ci.mjs --max-workers ${{ steps.cpu-cores.outputs.count }} --shard=${{ matrix.shard }} + uses: nick-fields/retry@v2 + with: + timeout_minutes: 10 + max_attempts: 3 + retry_on: error + command: yarn jest-coverage --color --config jest.config.ci.mjs --max-workers ${{ steps.cpu-cores.outputs.count }} --shard=${{ matrix.shard }} - name: map coverage run: node ./scripts/mapCoverage.mjs if: always() diff --git a/.github/workflows/test-nightly.yml b/.github/workflows/test-nightly.yml index b980a4a4598f..cfdf83250555 100644 --- a/.github/workflows/test-nightly.yml +++ b/.github/workflows/test-nightly.yml @@ -33,7 +33,12 @@ jobs: id: cpu-cores uses: SimenB/github-actions-cpu-cores@v2 - name: run tests - run: yarn test-ci-partial:parallel --max-workers ${{ steps.cpu-cores.outputs.count }} --shard=${{ matrix.shard }} + uses: nick-fields/retry@v2 + with: + timeout_minutes: 10 + max_attempts: 3 + retry_on: error + command: yarn test-ci-partial:parallel --max-workers ${{ steps.cpu-cores.outputs.count }} --shard=${{ matrix.shard }} test-jasmine: strategy: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dba0d7b4ab04..14f3620dafa8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,12 @@ jobs: id: cpu-cores uses: SimenB/github-actions-cpu-cores@v2 - name: run tests - run: yarn test-ci-partial:parallel --max-workers ${{ steps.cpu-cores.outputs.count }} --shard=${{ inputs.shard }} + uses: nick-fields/retry@v2 + with: + timeout_minutes: 10 + max_attempts: 3 + retry_on: error + command: yarn test-ci-partial:parallel --max-workers ${{ steps.cpu-cores.outputs.count }} --shard=${{ inputs.shard }} test-jasmine: name: Node LTS using jest-jasmine2 @@ -59,4 +64,9 @@ jobs: id: cpu-cores uses: SimenB/github-actions-cpu-cores@v2 - name: run tests using jest-jasmine - run: yarn jest-jasmine-ci --max-workers ${{ steps.cpu-cores.outputs.count }} --shard=${{ inputs.shard }} + uses: nick-fields/retry@v2 + with: + timeout_minutes: 10 + max_attempts: 3 + retry_on: error + command: yarn jest-jasmine-ci --max-workers ${{ steps.cpu-cores.outputs.count }} --shard=${{ inputs.shard }}