From ae1bf43c7ba9e55136e1046f096561dfe28d5f26 Mon Sep 17 00:00:00 2001 From: _Kerman Date: Mon, 13 Jul 2026 21:04:56 +0800 Subject: [PATCH] ci: split test job into 5 parallel vitest shards (#1618) --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4611d7f5f..99d74a539 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,10 @@ jobs: test: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + shard: [1, 2, 3, 4, 5] steps: - uses: actions/checkout@v4 @@ -42,7 +46,7 @@ jobs: cache: pnpm - run: pnpm install --frozen-lockfile - - run: pnpm run test + - run: pnpm run test --shard=${{ matrix.shard }}/5 # pi-tui's suite runs on node:test (not vitest), so the root `pnpm run test` # does not execute it; it needs its own job.