Skip to content

Commit 7499e41

Browse files
committed
coverage only
1 parent 29dac49 commit 7499e41

2 files changed

Lines changed: 6 additions & 26 deletions

File tree

.github/workflows/test.yaml

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,7 @@ jobs:
3535

3636
- name: Run tests
3737
run: npm run test:coverage
38-
39-
- name: Publish Test Results
40-
uses: EnricoMi/publish-unit-test-result-action@v2
41-
if: always()
42-
with:
43-
files:
44-
./coverage/cobertura-coverage.xml
45-
46-
- name: Publish Code Coverage
47-
uses: irongut/CodeCoverageSummary@v1.3.0
48-
with:
49-
filename: ./coverage/cobertura-coverage.xml
50-
badge: true
51-
format: markdown
52-
output: both
53-
54-
- name: Add Coverage PR Comment
55-
uses: marocchino/sticky-pull-request-comment@v2
56-
if: github.event_name == 'pull_request'
57-
with:
58-
recreate: true
59-
path: code-coverage-results.md
60-
61-
- name: Write to job Summary
62-
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY
38+
39+
- name: Report Coverage
40+
if: (!cancelled())
41+
uses: davelosert/vitest-coverage-report-action@v2

vitest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export default defineConfig({
1212
provider: "v8",
1313
include: [ "src/**/*.ts" ],
1414
exclude: [ "src/types/**/*.ts", "src/index.ts" ],
15-
reporter: [ "text", "json", "html", "cobertura" ],
15+
reporter: [ "text", "json", "json-summary" ],
16+
reportOnFailure: true
1617
},
1718

1819
typecheck: {

0 commit comments

Comments
 (0)