CI: reduce pre-test Windows setup latency

This commit is contained in:
Vincent Koc
2026-03-02 19:30:09 -08:00
parent 578a7a82be
commit 153a4f55db

View File

@@ -384,13 +384,14 @@ jobs:
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22.x
check-latest: true
check-latest: false
- name: Setup pnpm + cache store
uses: ./.github/actions/setup-pnpm-store-cache
with:
pnpm-version: "10.23.0"
cache-key-suffix: "node22"
use-restore-keys: "false"
- name: Runtime versions
run: |
@@ -424,6 +425,10 @@ jobs:
- name: Run ${{ matrix.task }} (${{ matrix.runtime }})
run: ${{ matrix.command }}
- name: Prune pnpm store (Windows cache hygiene)
if: always()
run: pnpm store prune || true
# Consolidated macOS job: runs TS tests + Swift lint/build/test sequentially
# on a single runner. GitHub limits macOS concurrent jobs to 5 per org;
# running 4 separate jobs per PR (as before) starved the queue. One job