Skip to content

Commit

Permalink
ci: shard vitest to speed up unit test (#9235)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saul-Mirone committed Dec 21, 2024
1 parent 3a82da0 commit ea6a056
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ jobs:
- build-native
env:
DISTRIBUTION: web
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4, 5]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
Expand All @@ -225,7 +229,7 @@ jobs:
path: ./packages/frontend/native

- name: Unit Test
run: yarn test:coverage
run: yarn test:coverage --shard=${{ matrix.shard }}/${{ strategy.job-total }}

- name: Upload unit test coverage results
uses: codecov/codecov-action@v5
Expand Down

0 comments on commit ea6a056

Please sign in to comment.