ci: report vitest code coverage (#549)
This commit is contained in:
6
.github/workflows/code-quality.yml
vendored
6
.github/workflows/code-quality.yml
vendored
@@ -66,3 +66,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: pnpm 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
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ export default defineConfig({
|
|||||||
reporter: ["html", "json-summary", "json"],
|
reporter: ["html", "json-summary", "json"],
|
||||||
all: true,
|
all: true,
|
||||||
exclude: ["apps/nextjs/.next/"],
|
exclude: ["apps/nextjs/.next/"],
|
||||||
|
reportOnFailure: true
|
||||||
},
|
},
|
||||||
|
|
||||||
exclude: [...configDefaults.exclude, "apps/nextjs/.next"],
|
exclude: [...configDefaults.exclude, "apps/nextjs/.next"],
|
||||||
|
|||||||
Reference in New Issue
Block a user