Skip to content

Commit 5e9227c

Browse files
authored
ci: run coverage and codecov on the ubuntu node-26 unit cell only (#2351)
1 parent 48243d5 commit 5e9227c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,21 @@ jobs:
8282
node-version: ${{ matrix.node-version }}
8383
cache: 'yarn'
8484
- run: yarn install --immutable
85+
# Coverage runs on one matrix cell only; every other cell runs the
86+
# suites bare. The per-OS coverage parity check measured identical
87+
# coverage on linux and windows (54 files, 1850/1934 vitest and
88+
# 193/217 jest statements on each OS), so a single ubuntu cell alone
89+
# sees everything. Bare vitest is 10-16s on windows instead of 28s.
8590
- run: yarn vitest --run --coverage
91+
if: matrix.os == 'ubuntu-latest' && matrix.node-version == 26
92+
- run: yarn vitest --run
93+
if: ${{ !(matrix.os == 'ubuntu-latest' && matrix.node-version == 26) }}
8694
- run: yarn jest --coverage
95+
if: matrix.os == 'ubuntu-latest' && matrix.node-version == 26
96+
- run: yarn jest
97+
if: ${{ !(matrix.os == 'ubuntu-latest' && matrix.node-version == 26) }}
8798
- uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
99+
if: matrix.os == 'ubuntu-latest' && matrix.node-version == 26
88100
with:
89101
# Each tool writes its own subdirectory (vitest: coverage/vitest,
90102
# jest: coverage/jest) and emits istanbul JSON; coverage ownership

0 commit comments

Comments
 (0)