Skip to content

Commit bd20bb2

Browse files
committed
fix(ci): run test:coverage to generate lcov reports; fix Codecov search_dir
1 parent 9616988 commit bd20bb2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ jobs:
120120
restore-keys: turbo-
121121

122122
- name: Run tests with coverage
123-
run: pnpm test
123+
run: pnpm run test:coverage
124124

125125
- name: Upload coverage to Codecov
126126
uses: codecov/codecov-action@v5
127127
with:
128128
token: ${{ secrets.CODECOV_TOKEN }}
129-
files: packages/*/coverage/lcov.info,devtools/*/coverage/lcov.info
129+
search_dir: .
130130
fail_ci_if_error: true
131131

132132
- name: Upload coverage artifacts

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"build": "turbo build",
99
"build:parallel": "pnpm -r build",
1010
"test": "turbo test",
11+
"test:coverage": "turbo test:coverage",
1112
"type-check": "turbo type-check",
1213
"lint": "biome lint --reporter=summary packages",
1314
"lint:fix": "biome check --write packages",

0 commit comments

Comments
 (0)