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/14 12:29:50 UTC

[camel-k] branch main updated: fix(ci): run test

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 d9975a7db fix(ci): run test
d9975a7db is described below

commit d9975a7db87cd181bf27a5fac4a846d29efd9917
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Fri Jul 14 14:29:40 2023 +0200

    fix(ci): run test
---
 .github/actions/automatic-updates/action.yml    | 5 +++++
 .github/workflows/nightly-automatic-updates.yml | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.github/actions/automatic-updates/action.yml b/.github/actions/automatic-updates/action.yml
index ceb585581..57a30c754 100644
--- a/.github/actions/automatic-updates/action.yml
+++ b/.github/actions/automatic-updates/action.yml
@@ -77,6 +77,11 @@ runs:
         git add camel-k-sbom/camel-k-sbom.json && git commit -m 'chore: nightly SBOM update' && echo "sbom=1" >> $GITHUB_ENV || echo "No changes to SBOM"
 
     # Coverage badge
+    - name: Run Test
+      run: |
+        go test -v ./... -covermode=count -coverprofile=coverage.out
+        go tool cover -func=coverage.out -o=coverage.out
+        touch badge.out
     - name: Go Coverage Badge
       uses: ./.github/actions/coverage-badge
       with:
diff --git a/.github/workflows/nightly-automatic-updates.yml b/.github/workflows/nightly-automatic-updates.yml
index fcbca7ada..7e44fb83a 100644
--- a/.github/workflows/nightly-automatic-updates.yml
+++ b/.github/workflows/nightly-automatic-updates.yml
@@ -42,7 +42,7 @@ jobs:
         ref: ${{ matrix.ref-branch }}
         persist-credentials: false
         submodules: recursive
-    - name: Automatic updates on main
+    - name: "Run upgrade action"
       uses: ./.github/actions/automatic-updates
       with:
         branch-ref: ${{ matrix.ref-branch }}