Skip to content

Commit

Permalink
sharded up
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Chong committed Aug 30, 2024
1 parent cd8b5df commit 8c8a327
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8c8a327

Please sign in to comment.