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:
@@ -39,11 +39,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
extension: pipeline
|
extension: pipeline
|
||||||
|
|
||||||
unit-tests:
|
unit-tests-matrix:
|
||||||
needs: setup
|
needs: setup
|
||||||
|
name: Unit Tests - Shard ${{ matrix.shard_index }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
|
matrix:
|
||||||
|
shard_index: [1, 2, 3]
|
||||||
env:
|
env:
|
||||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||||
@@ -63,7 +66,22 @@ jobs:
|
|||||||
extension: pipeline
|
extension: pipeline
|
||||||
|
|
||||||
- name: Run unit tests
|
- 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:
|
integration-tests-packages-matrix:
|
||||||
needs: setup
|
needs: setup
|
||||||
|
|||||||
Reference in New Issue
Block a user