🪟 ci: Shard Windows Frontend Unit Tests (#13651)

* 🪟 ci: Shard Windows Frontend Unit Tests

Mirror the 4-way jest sharding the Ubuntu frontend test job already
uses onto the Windows job, which currently runs the whole client suite
in a single 20-minute job. Also drops the `--verbose` flag, which npm
consumed itself (it preceded `--`) and only raised npm's own log level.

* 🪟 ci: Trigger Frontend Tests on Workflow Changes
This commit is contained in:
Danny Avila
2026-06-10 09:00:28 -04:00
committed by GitHub
parent 56281ece30
commit 70f7450bab

View File

@@ -6,6 +6,7 @@ on:
- 'client/**'
- 'packages/client/**'
- 'packages/data-provider/**'
- '.github/workflows/frontend-review.yml'
permissions:
contents: read
@@ -170,10 +171,14 @@ jobs:
working-directory: client
test-windows:
name: 'Tests: Windows'
name: 'Tests: Windows (shard ${{ matrix.shard }}/4)'
needs: build
runs-on: windows-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4]
steps:
- uses: actions/checkout@v4
@@ -209,8 +214,8 @@ jobs:
name: build-client-package
path: packages/client/dist
- name: Run unit tests
run: npm run test:ci --verbose
- name: Run unit tests (shard ${{ matrix.shard }}/4)
run: npm run test:ci -- --shard=${{ matrix.shard }}/4
working-directory: client
build-verify: