This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch code_coverage_v2
in repository https://gitbox.apache.org/repos/asf/tsfile.git
The following commit(s) were added to refs/heads/code_coverage_v2 by this push:
new f7551c0d Finish
f7551c0d is described below
commit f7551c0d2775a80c87e9016f24192d051051df13
Author: HTHou <[email protected]>
AuthorDate: Thu Aug 1 14:51:16 2024 +0800
Finish
---
.github/workflows/code-coverage.yml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/code-coverage.yml
b/.github/workflows/code-coverage.yml
index 591dbc88..e06e34f5 100644
--- a/.github/workflows/code-coverage.yml
+++ b/.github/workflows/code-coverage.yml
@@ -3,7 +3,6 @@ on:
push:
branches:
- develop
- - code_coverage_v2
paths-ignore:
- 'docs/**'
pull_request:
@@ -25,14 +24,15 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
- - name: Test
+ - name: Generate code coverage reports
run: |
sudo apt-get install lcov
./mvnw -B -P with-java,with-cpp,with-code-coverage clean verify
lcov --capture --directory cpp/target/build/test --output-file
cpp/target/build/test/coverage.info
- genhtml cpp/target/build/test/coverage.info --output-directory
cpp/target/build/test/coverage_report
+ lcov --remove cpp/target/build/test/coverage.info '*/test/*'
--output-file cpp/target/build/test/coverage_filtered.info
+ genhtml cpp/target/build/test/coverage_filtered.info
--output-directory cpp/target/build/test/coverage_report
- name: Upload coverage reports to codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- files:
./code-coverage/target/jacoco-merged-reports/jacoco.xml,./cpp/target/build/test/coverage_report/index.html
+ files:
code-coverage/target/jacoco-merged-reports/jacoco.xml,cpp/target/build/test/coverage_report/index.html