You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2023/07/12 08:05:44 UTC
[camel-k] branch main updated: fix(ci): coverage generate resources
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 9273c01be fix(ci): coverage generate resources
9273c01be is described below
commit 9273c01be470da25fba2e0bedf2fc08af52e8a2f
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Wed Jul 12 10:05:41 2023 +0200
fix(ci): coverage generate resources
---
.github/workflows/coverage-report.yml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/coverage-report.yml b/.github/workflows/coverage-report.yml
index ddbbb0bc0..aaa3d0fb1 100644
--- a/.github/workflows/coverage-report.yml
+++ b/.github/workflows/coverage-report.yml
@@ -66,7 +66,8 @@ jobs:
working-directory: ./${{ github.event.pull_request.head.repo.name }}
if: env.rebaseAborted != 1
run: |
- go test -v ./... -covermode=count -coverprofile=coverage.out
+ make build-resources
+ go test ./... -covermode=count -coverprofile=coverage.out
go tool cover -func=coverage.out -o=coverage.out
new_coverage="$(grep -o -P '(?<=\(statements\))(.+)(?=%)' coverage.out | xargs)"
@@ -78,7 +79,8 @@ jobs:
if: env.rebaseAborted != 1
run: |
git checkout upstream/${{ github.event.pull_request.base.ref }}
- go test -v ./... -covermode=count -coverprofile=coverage_old.out
+ make build-resources
+ go test ./... -covermode=count -coverprofile=coverage_old.out
go tool cover -func=coverage_old.out -o=coverage_old.out
old_coverage="$(grep -o -P '(?<=\(statements\))(.+)(?=%)' coverage_old.out | xargs)"