diff --git a/.github/workflows/core-ci.yml b/.github/workflows/core-ci.yml index c02c5b7a1dd..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,11 +52,11 @@ jobs: run: pnpm run build - name: Test - 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: always() + if: always() && matrix.coverage != '' with: name: coverage-${{ matrix.os }}-node${{ matrix.node-version }} path: packages/*/coverage/