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/05/30 10:41:04 UTC

[camel-k] branch main updated (da3ed4973 -> 9d9cb99b2)

This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


    from da3ed4973 chore(deps): remove github.com/fatih/structs
     new e28b01444 chore/removed 3rd party dependecies from coverage badge
     new 9d9cb99b2 revert README commit

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../action.yml                                     | 40 +++++++++++++---------
 .github/workflows/nightly-coverage.yml             |  9 +----
 2 files changed, 25 insertions(+), 24 deletions(-)
 copy .github/actions/{kamel-install-cluster-setup => coverage-badge}/action.yml (57%)


[camel-k] 01/02: chore/removed 3rd party dependecies from coverage badge

Posted by pc...@apache.org.
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

commit e28b014441f6a3f05c34447d01f18c31861064b0
Author: Martin Olsiak <ma...@gmail.com>
AuthorDate: Tue May 30 08:34:20 2023 +0200

    chore/removed 3rd party dependecies from coverage badge
---
 .github/actions/coverage-badge/action.yml | 48 +++++++++++++++++++++++++++++++
 .github/workflows/nightly-coverage.yml    |  9 +-----
 README.adoc                               |  2 +-
 3 files changed, 50 insertions(+), 9 deletions(-)

diff --git a/.github/actions/coverage-badge/action.yml b/.github/actions/coverage-badge/action.yml
new file mode 100644
index 000000000..a2bc02168
--- /dev/null
+++ b/.github/actions/coverage-badge/action.yml
@@ -0,0 +1,48 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+name: Go Coverage Badge
+description: Generate coverage badge for go projects
+inputs:
+  filename:
+    description: 'File containing the tests output'
+    required: true
+    default: coverage.out
+  target:
+    description: 'Target file (default "README.md")'
+    required: false
+
+runs:
+  using: 'composite'
+  steps:
+    - run: |
+        EXTRA_ARGS=""
+
+        if [[ -n '${{ inputs.target }}'  ]]; then
+          EXTRA_ARGS+="-target=${{ inputs.target }}"
+        fi
+        
+        TEMP_DIR=$(mktemp -d)
+        curl -sf https://gobinaries.com/github.com/AlexBeauchemin/gobadge@v0.2.0 | PREFIX=$TEMP_DIR sh
+        $TEMP_DIR/gobadge -filename=${{ inputs.filename }} $EXTRA_ARGS
+        rm -rf $TEMP_DIR
+      id: coverage-badge-go
+      shell: bash
+
+branding:
+  icon: check-circle
+  color: white
\ No newline at end of file
diff --git a/.github/workflows/nightly-coverage.yml b/.github/workflows/nightly-coverage.yml
index 801312566..bda72b846 100644
--- a/.github/workflows/nightly-coverage.yml
+++ b/.github/workflows/nightly-coverage.yml
@@ -55,7 +55,7 @@ jobs:
 
       - name: Go Coverage Badge
 
-        uses: tj-actions/coverage-badge-go@v2
+        uses: ./.github/actions/coverage-badge
         with:
           filename: coverage.out
           target: badge.out
@@ -65,13 +65,6 @@ jobs:
           replacement=$(grep -o 'https://[^)]*' badge.out)
           target="(?:https:\/\/img\.shields\.io\/badge\/Coverage).*?(?=\.svg)"
           perl -i -pe "s|${target}|${replacement}|g" README.adoc
-          
-          
-      - name: Verify Changed files
-        uses: tj-actions/verify-changed-files@v12
-        id: verify-changed-files
-        with:
-          files: README.adoc
 
       - name: Commit changes
         shell: bash
diff --git a/README.adoc b/README.adoc
index d07ad3186..567ca4601 100644
--- a/README.adoc
+++ b/README.adoc
@@ -11,7 +11,7 @@ image:https://github.com/apache/camel-k/workflows/kubernetes/badge.svg["Kubernet
 image:https://github.com/apache/camel-k/workflows/knative/badge.svg["Knative", link="https://github.com/apache/camel-k/actions/workflows/knative.yml"]
 image:https://github.com/apache/camel-k/actions/workflows/nightly-release.yml/badge.svg["Nightly releases", link="https://github.com/apache/camel-k/actions/workflows/nightly-release.yml"]
 image:https://github.com/apache/camel-k/actions/workflows/nightly-native-test.yml/badge.svg["Quarkus native", link="https://github.com/apache/camel-k/actions/workflows/nightly-native-test.yml"]
-image:https://img.shields.io/badge/Coverage-39.6%25-yellow.svg["Go coverage", link="https://github.com/apache/camel-k/actions/workflows/nightly-coverage.yml"]
+image:https://img.shields.io/badge/Coverage-38.7%25-yellow.svg["Go coverage", link="https://github.com/apache/camel-k/actions/workflows/nightly-coverage.yml"]
 image:https://img.shields.io/badge/zulip-join_chat-brightgreen.svg["Chat on Zulip", link="https://camel.zulipchat.com"]
 
 Apache Camel K is a lightweight integration framework built from **Apache Camel** that runs natively on Kubernetes and is specifically designed for serverless and microservice architectures. Users of `Camel K` can instantly run integration code written in Camel DSL on their preferred **Cloud** provider.


[camel-k] 02/02: revert README commit

Posted by pc...@apache.org.
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

commit 9d9cb99b266aeb05b0bc8bc9cab7ca21349da3f7
Author: Martin Olsiak <ma...@gmail.com>
AuthorDate: Tue May 30 08:41:40 2023 +0200

    revert README commit
---
 README.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.adoc b/README.adoc
index 567ca4601..d07ad3186 100644
--- a/README.adoc
+++ b/README.adoc
@@ -11,7 +11,7 @@ image:https://github.com/apache/camel-k/workflows/kubernetes/badge.svg["Kubernet
 image:https://github.com/apache/camel-k/workflows/knative/badge.svg["Knative", link="https://github.com/apache/camel-k/actions/workflows/knative.yml"]
 image:https://github.com/apache/camel-k/actions/workflows/nightly-release.yml/badge.svg["Nightly releases", link="https://github.com/apache/camel-k/actions/workflows/nightly-release.yml"]
 image:https://github.com/apache/camel-k/actions/workflows/nightly-native-test.yml/badge.svg["Quarkus native", link="https://github.com/apache/camel-k/actions/workflows/nightly-native-test.yml"]
-image:https://img.shields.io/badge/Coverage-38.7%25-yellow.svg["Go coverage", link="https://github.com/apache/camel-k/actions/workflows/nightly-coverage.yml"]
+image:https://img.shields.io/badge/Coverage-39.6%25-yellow.svg["Go coverage", link="https://github.com/apache/camel-k/actions/workflows/nightly-coverage.yml"]
 image:https://img.shields.io/badge/zulip-join_chat-brightgreen.svg["Chat on Zulip", link="https://camel.zulipchat.com"]
 
 Apache Camel K is a lightweight integration framework built from **Apache Camel** that runs natively on Kubernetes and is specifically designed for serverless and microservice architectures. Users of `Camel K` can instantly run integration code written in Camel DSL on their preferred **Cloud** provider.