diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 128f1c2..babaadc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,10 @@ permissions: {} jobs: ci: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - run: corepack enable @@ -45,10 +48,11 @@ jobs: - run: pnpm dev:prepare - run: pnpm lint - - run: pnpm test -- --coverage + - run: pnpm test - run: pnpm build - run: pnpm test:types - run: pnpm dev:build - uses: codecov/codecov-action@v4 + if: matrix.os != 'windows-latest' env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/package.json b/package.json index fc503ff..3daf4d2 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare client", "release": "pnpm lint && pnpm test && pnpm prepack && changelogen --release && npm publish && git push --follow-tags", "lint": "eslint .", - "test": "vitest run", + "test": "vitest run --coverage", "test:types": "vue-tsc --noEmit && pnpm -r test:types", "test:watch": "vitest watch" },