This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 38c2a9e4d fix(ci): calculate coverage properly
38c2a9e4d is described below
commit 38c2a9e4dc9cdfdef9b413a27a95f481aab9b10d
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Tue Dec 16 17:49:47 2025 +0100
fix(ci): calculate coverage properly
We need to account tests covering certain packages but executed in other
packages.
Closes #6424
---
.github/actions/build/action.yml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml
index 3160ddda6..49819c010 100644
--- a/.github/actions/build/action.yml
+++ b/.github/actions/build/action.yml
@@ -45,7 +45,7 @@ runs:
- name: Test new branch
shell: bash
run: |
- COVERAGE_OPTS="-covermode=count -coverprofile=coverage.out" make build
+ COVERAGE_OPTS="-covermode=count -coverprofile=coverage.out
-coverpkg=./..." make build
# Only run these on pull request events
- name: Save new coverage value
@@ -73,7 +73,7 @@ runs:
if: github.event_name == 'pull_request'
shell: bash
run: |
- COVERAGE_OPTS="-covermode=count -coverprofile=coverage.out" make build
+ COVERAGE_OPTS="-covermode=count -coverprofile=coverage.out
-coverpkg=./..." make build
# Remove mock and generated code from account
grep -v "github.com/apache/camel-k/v2/pkg/client" coverage.out \
| grep -v "zz_generated" \
@@ -85,4 +85,4 @@ runs:
if: github.event_name == 'pull_request'
with:
name: ${{ inputs.artifact-name }}
- path: /tmp/${{ inputs.artifact-name }}/
\ No newline at end of file
+ path: /tmp/${{ inputs.artifact-name }}/