ci: report vitest code coverage (#549)

This commit is contained in:
Manuel authored and GitHub committed 2024-05-25 19:56:24 +02:00
1 parent b678d4f951
commit b76fa9d722
2 files changed
+7

No files matched your search

+6
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
+1
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"],