|
|
@@ -182,17 +182,45 @@ jobs:
|
|
|
- name: Build (tsc -b + tsdown)
|
|
|
run: pnpm run build
|
|
|
|
|
|
- # Observational Windows mirror of the Linux gates. Snapshot stays Linux-only
|
|
|
- # while its replay goldens remain platform-specific. This job intentionally
|
|
|
- # stays out of all-checks-passed.needs.
|
|
|
+ # Observational Windows mirror of the Linux gate lanes. Snapshot stays
|
|
|
+ # Linux-only while its replay goldens remain platform-specific. Splitting the
|
|
|
+ # lanes makes failures attributable without changing their non-gating role.
|
|
|
windows-gates:
|
|
|
runs-on: windows-2025
|
|
|
- name: windows node 24
|
|
|
+ name: windows node 24 / ${{ matrix.lane }}
|
|
|
env:
|
|
|
- DSH_GATE_CONCURRENCY: '2'
|
|
|
- DSH_PUBLINT_CONCURRENCY: '8'
|
|
|
- DSH_COVERAGE_MAX_WORKERS: '4'
|
|
|
- DSH_ESLINT_CACHE: '1'
|
|
|
+ DSH_GATE_CONCURRENCY: ${{ matrix.gate_concurrency }}
|
|
|
+ DSH_PUBLINT_CONCURRENCY: ${{ matrix.publint_concurrency }}
|
|
|
+ DSH_COVERAGE_MAX_WORKERS: ${{ matrix.coverage_max_workers }}
|
|
|
+ DSH_ESLINT_CACHE: ${{ matrix.eslint_cache }}
|
|
|
+ strategy:
|
|
|
+ fail-fast: false
|
|
|
+ matrix:
|
|
|
+ include:
|
|
|
+ - lane: static
|
|
|
+ command: pnpm run check:ci:static
|
|
|
+ gate_concurrency: '4'
|
|
|
+ publint_concurrency: '8'
|
|
|
+ coverage_max_workers: ''
|
|
|
+ eslint_cache: ''
|
|
|
+ - lane: lint
|
|
|
+ command: pnpm run check:ci:lint
|
|
|
+ gate_concurrency: '1'
|
|
|
+ publint_concurrency: '8'
|
|
|
+ coverage_max_workers: ''
|
|
|
+ eslint_cache: '1'
|
|
|
+ - lane: coverage
|
|
|
+ command: pnpm run check:ci:coverage
|
|
|
+ gate_concurrency: '1'
|
|
|
+ publint_concurrency: '8'
|
|
|
+ coverage_max_workers: '4'
|
|
|
+ eslint_cache: ''
|
|
|
+ - lane: artifacts
|
|
|
+ command: pnpm run check:ci:artifacts
|
|
|
+ gate_concurrency: '3'
|
|
|
+ publint_concurrency: '8'
|
|
|
+ coverage_max_workers: ''
|
|
|
+ eslint_cache: ''
|
|
|
steps:
|
|
|
- uses: actions/checkout@v6
|
|
|
|
|
|
@@ -216,6 +244,7 @@ jobs:
|
|
|
run: '"path=$(pnpm store path --silent)" >> $env:GITHUB_OUTPUT'
|
|
|
|
|
|
- uses: actions/cache@v4
|
|
|
+ if: matrix.lane == 'lint'
|
|
|
with:
|
|
|
path: ${{ steps.pnpm-store.outputs.path }}
|
|
|
key: ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
|
|
@@ -233,21 +262,9 @@ jobs:
|
|
|
restore-keys: |
|
|
|
${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-eslint-
|
|
|
|
|
|
- - name: Run static gates
|
|
|
- shell: powershell
|
|
|
- run: pnpm run check:ci:static
|
|
|
-
|
|
|
- - name: Run lint gates
|
|
|
- shell: powershell
|
|
|
- run: pnpm run check:ci:lint
|
|
|
-
|
|
|
- - name: Run coverage gates
|
|
|
- shell: powershell
|
|
|
- run: pnpm run check:ci:coverage
|
|
|
-
|
|
|
- - name: Run artifact gates
|
|
|
+ - name: Run gates
|
|
|
shell: powershell
|
|
|
- run: pnpm run check:ci:artifacts
|
|
|
+ run: ${{ matrix.command }}
|
|
|
|
|
|
# Single stable required check for branch protection: require "all checks
|
|
|
# passed" instead of enumerating matrix legs whose names change as lanes and
|