From af0ae60b80e5d0d15bf1557f5e9841a4be883d6e Mon Sep 17 00:00:00 2001 From: Adam Moussa Date: Sat, 19 Sep 2026 15:41:10 -0400 Subject: [PATCH] ci: shard unit tests four ways --- .github/workflows/ci.yaml | 4 ++-- QUALITY_GATES.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f725d6fe..f44095b9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -49,7 +49,7 @@ jobs: strategy: fail-fast: false matrix: - shard: [1, 2] + shard: [1, 2, 3, 4] steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 @@ -57,7 +57,7 @@ jobs: node-version: "24" cache: npm - run: npm ci - - run: npm test -- --shard=${{ matrix.shard }}/2 + - run: npm test -- --shard=${{ matrix.shard }}/4 visual: name: Visual regression diff --git a/QUALITY_GATES.md b/QUALITY_GATES.md index fcaacb21..a8e4885e 100644 --- a/QUALITY_GATES.md +++ b/QUALITY_GATES.md @@ -62,7 +62,7 @@ isolation). A task is not done until this is green. Prettier on staged files at commit; commitlint enforces Conventional Commits. - **CI ([`.github/workflows/ci.yaml`](.github/workflows/ci.yaml)):** this repository owns every job. `static` (`format:check` + `lint`), `build` - (`tsc -b && vite build`), `unit` (`vitest run` in two shards), `visual` + (`tsc -b && vite build`), `unit` (`vitest run` in four shards), `visual` (Playwright visual), and `governance` (`npm run governance`, with Terraform 1.16.0) run in parallel. `ci-complete` fails unless all of those jobs succeeded and is the required merge-queue check. Live G13 runs on