Skip to content

Commit 59d7ed6

Browse files
committed
chore: update CI workflow and Vitest config for coverage reporting
1 parent 7183375 commit 59d7ed6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/ci-vitest.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
cache: "npm"
2020
- name: Install dependencies
2121
run: npm ci
22-
- name: Run tests with coverage
22+
- name: Run vitests with coverage
2323
run: npm run test
24-
- name: Code Coverage Summary
24+
- name: Code coverage summary
2525
uses: irongut/CodeCoverageSummary@v1.3.0
2626
with:
27-
filename: coverage/coverage-summary.json
28-
- name: Add coverage comment
27+
filename: coverage/**/coverage.cobertura.xml
28+
- name: Add coverage pr comment
2929
uses: marocchino/sticky-pull-request-comment@v2
3030
if: github.event_name == 'pull_request'
3131
with:

vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default defineConfig({
44
test: {
55
coverage: {
66
provider: "v8",
7-
reporter: ["text", "json-summary", "lcov"],
7+
reporter: ["text", "json-summary", "lcov", "cobertura"],
88
},
99
},
1010
});

0 commit comments

Comments
 (0)