Skip to content

Commit

Permalink
ci: report vitest code coverage (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-rw authored May 25, 2024
1 parent b678d4f commit b76fa9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 1 addition & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit b76fa9d

Please sign in to comment.