perf: 并行化前端单测并缩短 CI 关键路径 (#690)

This commit is contained in:
InfinityPacer
2026-08-20 20:02:24 +08:00
committed by GitHub
parent aef379f3ec
commit 3d1361281d
7 changed files with 138 additions and 17 deletions
+11 -4
View File
@@ -62,9 +62,19 @@ jobs:
- name: Lint
run: yarn lint
- name: Typecheck
run: yarn typecheck
typecheck-and-tests:
runs-on: ubuntu-latest
name: Unit tests (${{ matrix.shard }})
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
shard:
- 1/2
- 2/2
steps:
- name: Checkout
uses: actions/checkout@v7
@@ -79,8 +89,5 @@ jobs:
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Typecheck
run: yarn typecheck
- name: Unit tests
run: yarn test:run
run: yarn test:run --shard=${{ matrix.shard }} --silent=passed-only