From ffed78f9f53ae3a4c0177395c581d538b6b78c7e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 15 Sep 2026 19:54:02 +0000 Subject: [PATCH 1/2] ci: skip coverage on windows Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com> --- .github/workflows/core-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/core-ci.yml b/.github/workflows/core-ci.yml index c02c5b7a1dd..b0dbb76f812 100644 --- a/.github/workflows/core-ci.yml +++ b/.github/workflows/core-ci.yml @@ -47,11 +47,16 @@ jobs: run: pnpm run build - name: Test + if: runner.os == 'Windows' + run: pnpm vitest run --reporter=default --reporter=github-actions + + - name: Test with coverage + if: runner.os != 'Windows' run: pnpm vitest run --coverage --reporter=default --reporter=github-actions - name: Upload coverage artifacts uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - if: always() + if: runner.os != 'Windows' && always() with: name: coverage-${{ matrix.os }}-node${{ matrix.node-version }} path: packages/*/coverage/ From ceb666d2b718b28c1db384da04f58ba77258b40c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 15 Sep 2026 20:06:02 +0000 Subject: [PATCH 2/2] ci: configure coverage from matrix Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com> --- .github/workflows/core-ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/core-ci.yml b/.github/workflows/core-ci.yml index b0dbb76f812..98e7f96af56 100644 --- a/.github/workflows/core-ci.yml +++ b/.github/workflows/core-ci.yml @@ -16,6 +16,11 @@ jobs: matrix: os: [ubuntu-latest, windows-latest] node-version: ["22.x", "24.x", "26.x"] + include: + - os: ubuntu-latest + coverage: --coverage + - os: windows-latest + coverage: "" env: TYPESPEC_VS_CI_BUILD: true @@ -47,16 +52,11 @@ jobs: run: pnpm run build - name: Test - if: runner.os == 'Windows' - run: pnpm vitest run --reporter=default --reporter=github-actions - - - name: Test with coverage - if: runner.os != 'Windows' - run: pnpm vitest run --coverage --reporter=default --reporter=github-actions + run: pnpm vitest run ${{ matrix.coverage }} --reporter=default --reporter=github-actions - name: Upload coverage artifacts uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - if: runner.os != 'Windows' && always() + if: always() && matrix.coverage != '' with: name: coverage-${{ matrix.os }}-node${{ matrix.node-version }} path: packages/*/coverage/