mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-04 15:10:56 +08:00
perf: 并行化前端单测并缩短 CI 关键路径 (#690)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user