mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 00:11:33 +03:00
ci: shard vitest to speed up unit test (#9235)
This commit is contained in:
parent
3a82da0e5b
commit
ea6a05632b
6
.github/workflows/build-test.yml
vendored
6
.github/workflows/build-test.yml
vendored
@ -209,6 +209,10 @@ jobs:
|
|||||||
- build-native
|
- build-native
|
||||||
env:
|
env:
|
||||||
DISTRIBUTION: web
|
DISTRIBUTION: web
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
shard: [1, 2, 3, 4, 5]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
@ -225,7 +229,7 @@ jobs:
|
|||||||
path: ./packages/frontend/native
|
path: ./packages/frontend/native
|
||||||
|
|
||||||
- name: Unit Test
|
- name: Unit Test
|
||||||
run: yarn test:coverage
|
run: yarn test:coverage --shard=${{ matrix.shard }}/${{ strategy.job-total }}
|
||||||
|
|
||||||
- name: Upload unit test coverage results
|
- name: Upload unit test coverage results
|
||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
|
Loading…
Reference in New Issue
Block a user