diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index aaa4fcecfe3..f92fec4a9b1 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -20,11 +20,33 @@ on: jobs: unit-tests: if: github.head_ref != 'changeset-release/main' - name: "test-unit" + name: "test-unit (shard 1/3)" runs-on: ubuntu-latest timeout-minutes: 10 steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup - name: Unit tests - run: pnpm test -- -- --run + run: pnpm test -- -- --run --shard=1/3 + + unit-tests-2: + if: github.head_ref != 'changeset-release/main' + name: "test-unit (shard 2/3)" + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/setup + - name: Unit tests + run: pnpm test -- -- --run --shard=2/3 + + unit-tests-3: + if: github.head_ref != 'changeset-release/main' + name: "test-unit (shard 3/3)" + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/setup + - name: Unit tests + run: pnpm test -- -- --run --shard=3/3