mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-26 16:30:57 +01:00
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
|
||||
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"],
|
||||
all: true,
|
||||
exclude: ["apps/nextjs/.next/"],
|
||||
reportOnFailure: true
|
||||
},
|
||||
|
||||
exclude: [...configDefaults.exclude, "apps/nextjs/.next"],
|
||||
|
||||
Reference in New Issue
Block a user