chore(): Shard unit tests jobs (#13525)
* chore(): Shard unit tests jobs * pass with no tests * try artifacts * Revert "try artifacts" This reverts commit 43663b46ea1fb2d3131182b733ab6e202ea83f1d.
This commit is contained in:
committed by
GitHub
parent
ba9a30757b
commit
7de42a69a5
22
.github/workflows/action.yml
vendored
22
.github/workflows/action.yml
vendored
@@ -39,11 +39,14 @@ jobs:
|
||||
with:
|
||||
extension: pipeline
|
||||
|
||||
unit-tests:
|
||||
unit-tests-matrix:
|
||||
needs: setup
|
||||
name: Unit Tests - Shard ${{ matrix.shard_index }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
shard_index: [1, 2, 3]
|
||||
env:
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||
@@ -63,7 +66,22 @@ jobs:
|
||||
extension: pipeline
|
||||
|
||||
- name: Run unit tests
|
||||
run: yarn test:chunk -- --maxWorkers=${{ steps.cpu-cores.outputs.count }}
|
||||
run: yarn test:chunk -- --shard=${{ matrix.shard_index }}/3 --maxWorkers=${{ steps.cpu-cores.outputs.count }} --passWithNoTests
|
||||
|
||||
unit-tests:
|
||||
if: ${{ always() }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: unit-tests-matrix
|
||||
steps:
|
||||
- run: exit 1
|
||||
if: >-
|
||||
${{
|
||||
contains(needs.unit-tests-matrix.result, 'failure')
|
||||
|| contains(needs.unit-tests-matrix.result, 'cancelled')
|
||||
|| contains(needs.unit-tests-matrix.result, 'skipped')
|
||||
}}
|
||||
- run: exit 0
|
||||
if: ${{ contains(needs.unit-tests-matrix.result, 'success') }}
|
||||
|
||||
integration-tests-packages-matrix:
|
||||
needs: setup
|
||||
|
||||
Reference in New Issue
Block a user