Skip to content

Commit f77447f

Browse files
committed
ci: emit test data to codecov
1 parent e1c4c15 commit f77447f

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
run: pnpm install
8181

8282
- name: 🧪 Unit tests
83-
run: pnpm test:unit --project unit run --coverage
83+
run: pnpm test:unit run --coverage --reporter=junit --outputFile=test-report.junit.xml
8484

8585
test:
8686
name: 🧪 Component tests
@@ -105,7 +105,7 @@ jobs:
105105
run: pnpm playwright install chromium-headless-shell
106106

107107
- name: 🧪 Component tests
108-
run: pnpm vite test --project nuxt run --coverage
108+
run: pnpm test:nuxt run --coverage --reporter=junit --outputFile=test-report.junit.xml
109109

110110
- name: Upload coverage reports to Codecov
111111
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5

codecov.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
# Set to false to make this check informational only (won't fail)
6+
informational: true
7+
patch:
8+
default:
9+
# Set to false to make this check informational only (won't fail)
10+
informational: true
11+
12+
comment:
13+
layout: 'reach,diff,flags,tree,components,tests,build'
14+
behavior: default
15+
require_changes: false

0 commit comments

Comments
 (0)