diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ba776191..9025a51d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, windows-latest] node: [18] steps: @@ -50,9 +50,10 @@ jobs: run: pnpm test:types - name: 🧪 Test project - run: pnpm test -- --coverage + run: pnpm test - name: 🟩 Coverage + if: matrix.os != 'windows-latest' uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/package.json b/package.json index 8ed9b3fb3..1d986bf95 100755 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "lint": "eslint --fix .", "prepublishOnly": "pnpm test", "release": "bumpp && npm publish", - "test": "pnpm lint && pnpm vitest run", + "test": "pnpm lint && pnpm vitest run --coverage", "test:types": "vue-tsc --noEmit", "test:unit": "vitest run test/unit/*.test.*", "test:e2e": "vitest run test/e2e/*.test.*"