This is an automated email from the ASF dual-hosted git repository.
aaronai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git
The following commit(s) were added to refs/heads/master by this push:
new 8bcec39 Add coverage GitHub Action (#134)
8bcec39 is described below
commit 8bcec39a28f7b105b14f9d6c69fe785e887b54af
Author: Aaron Ai <[email protected]>
AuthorDate: Wed Aug 3 17:54:19 2022 +0800
Add coverage GitHub Action (#134)
---
.github/workflows/cpp_coverage.yml | 21 +++++++++++++++++++++
.github/workflows/java_coverage.yml | 7 +------
2 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/cpp_coverage.yml
b/.github/workflows/cpp_coverage.yml
new file mode 100644
index 0000000..de22079
--- /dev/null
+++ b/.github/workflows/cpp_coverage.yml
@@ -0,0 +1,21 @@
+name: CPP Coverage
+on:
+ push:
+ branches:
+ - master
+# mainly refer to:
https://github.com/merkrafter/Merkompiler/blob/development/.github/workflows/quality_assurance.yml
+jobs:
+ calculate-coverage:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Generate coverage report
+ working-directory: ./cpp
+ run: bazel coverage //...
+ - name: Upload to Codecov
+ uses: codecov/[email protected]
+ with:
+ file: ./cpp/bazel-out/_coverage/_coverage_report.dat
+ flags: cpp
+ fail_ci_if_error: true
+ verbose: true
diff --git a/.github/workflows/java_coverage.yml
b/.github/workflows/java_coverage.yml
index 35c647e..4aa10b5 100644
--- a/.github/workflows/java_coverage.yml
+++ b/.github/workflows/java_coverage.yml
@@ -1,14 +1,8 @@
name: Java Coverage
on:
- pull_request:
- types: [opened, reopened, synchronize]
- paths:
- - "java/**"
push:
branches:
- master
- paths:
- - "java/**"
# mainly refer to:
https://github.com/merkrafter/Merkompiler/blob/development/.github/workflows/quality_assurance.yml
jobs:
calculate-coverage:
@@ -26,5 +20,6 @@ jobs:
uses: codecov/[email protected]
with:
file: ./java/client/target/site/jacoco/jacoco.xml
+ flags: java
fail_ci_if_error: true
verbose: true