ci: report vitest code coverage (#549)

This commit is contained in:
Manuel
2024-05-25 19:56:24 +02:00
committed by GitHub
parent b678d4f951
commit b76fa9d722
2 changed files with 7 additions and 0 deletions

View File

@@ -66,3 +66,9 @@ jobs:
- name: Test
run: pnpm test
- name: 'Report Coverage'
# Set if: always() to also generate the report if tests are failing
# Only works if you set `reportOnFailure: true` in your vite config as specified above
if: always()
uses: davelosert/vitest-coverage-report-action@v2

View File

@@ -18,6 +18,7 @@ export default defineConfig({
reporter: ["html", "json-summary", "json"],
all: true,
exclude: ["apps/nextjs/.next/"],
reportOnFailure: true
},
exclude: [...configDefaults.exclude, "apps/nextjs/.next"],