Skip to content

Commit 5783c6c

Browse files
committed
ci: separate CLI coverage output and upload both reports
1 parent 488b22b commit 5783c6c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
- name: Upload test coverage report
7575
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
7676
with:
77-
files: ./coverage/lcov.info
77+
files: ./coverage/lcov.info,./coverage-cli/lcov.info
7878
token: ${{ secrets.CODECOV_TOKEN }}
7979

8080
- name: Build frontend

packages/git-proxy-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build": "tsc",
1515
"lint": "eslint \"./*.ts\" --fix",
1616
"test": "cd ../.. && vitest --run --dir packages/git-proxy-cli/test",
17-
"test-coverage-ci": "cd ../.. && c8 --include 'packages/git-proxy-cli/dist/**' --exclude 'packages/git-proxy-cli/test/**' --reporter lcovonly --reporter text vitest --run --dir packages/git-proxy-cli/test"
17+
"test-coverage-ci": "cd ../.. && c8 --reports-dir ./coverage-cli --include 'packages/git-proxy-cli/dist/**' --exclude 'packages/git-proxy-cli/test/**' --reporter lcovonly --reporter text vitest --run --dir packages/git-proxy-cli/test"
1818
},
1919
"author": "Miklos Sagi",
2020
"license": "Apache-2.0",

0 commit comments

Comments
 (0)