You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2023/10/13 15:25:00 UTC

[camel] branch auto-generate-list-of-sub-components created (now 7b4f138977e)

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

nfilotto pushed a change to branch auto-generate-list-of-sub-components
in repository https://gitbox.apache.org/repos/asf/camel.git


      at 7b4f138977e (chore) ci: auto-generate list of submodules

This branch includes the following new commits:

     new 7b4f138977e (chore) ci: auto-generate list of submodules

The 1 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.



[camel] 01/01: (chore) ci: auto-generate list of submodules

Posted by nf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a commit to branch auto-generate-list-of-sub-components
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 7b4f138977eeb8e15ff6b458f69a26d38075ceb3
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Fri Oct 13 17:24:33 2023 +0200

    (chore) ci: auto-generate list of submodules
---
 .github/actions/component-test/component-test.sh | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/.github/actions/component-test/component-test.sh b/.github/actions/component-test/component-test.sh
index 68efe60e73a..282b06a1a84 100755
--- a/.github/actions/component-test/component-test.sh
+++ b/.github/actions/component-test/component-test.sh
@@ -34,12 +34,21 @@ function main() {
   for component in ${componentList}
   do
     if [[ ${component} = camel-* ]] ; then
-      pl="$pl,components/${component}"
+      componentPath="components/${component}"
     else
-      pl="$pl,components/camel-${component}"
+      componentPath="components/camel-${component}"
+    fi
+    if [[ -d "${componentPath}" ]] ; then
+      pl="$pl$(find "${componentPath}" -name pom.xml -exec dirname {} \; | sort | tr -s "\n" ",")"
     fi
   done
-  pl="${pl:1}"
+  len=${#pl}
+  if [[ "$len" -gt "0" ]] ; then
+    pl="${pl::len-1}"
+  else
+    echo "The components to test don't exist"
+    exit 1
+  fi
 
   if [[ ${fastBuild} = "true" ]] ; then
     echo "Launching a fast build against the projects ${pl} and their dependencies"