diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c86efc..4caec99 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,5 +32,11 @@ jobs: - name: Test run: pnpm test:coverage + - name: Code Coverage + uses: irongut/CodeCoverageSummary@v1.3.0 + with: + filename: coverage/cobertura-coverage.xml + badge: true + - name: Build run: pnpm build diff --git a/vitest.config.ts b/vitest.config.ts index 85ba660..209bf42 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -4,6 +4,7 @@ export default defineConfig({ test: { coverage: { provider: 'v8', + reporter: ['cobertura', 'text'], reportsDirectory: '../coverage', },