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

nfilotto pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 6ddeeafd2a5 CAMEL-20296: component-test - Exclude IT folders (#12660)
6ddeeafd2a5 is described below

commit 6ddeeafd2a5e9dbd8e8d64c90e18f4ca74ba6097
Author: Nicolas Filotto <essob...@users.noreply.github.com>
AuthorDate: Thu Jan 4 16:07:53 2024 +0100

    CAMEL-20296: component-test - Exclude IT folders (#12660)
    
    ## Motivation
    
    The GitHub action component-test tries to build maven projects that are 
integration tests while it should ignore them.
    
    ## Modifications:
    
    * Exclude folders related to integration tests when trying to autodetect 
the root of sub-projects.
---
 .github/actions/component-test/component-test.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/actions/component-test/component-test.sh 
b/.github/actions/component-test/component-test.sh
index 8b17efc4f56..73555c72835 100755
--- a/.github/actions/component-test/component-test.sh
+++ b/.github/actions/component-test/component-test.sh
@@ -27,7 +27,7 @@ function main() {
     local componentList="${commentBody:16}"
     echo "The list of components to test is ${componentList}"
   else
-    echo "No components has been detected, the expected format is 
'/component-test (camel-)component-name1 (camel-)component-name2...'"
+    echo "No components have been detected, the expected format is 
'/component-test (camel-)component-name1 (camel-)component-name2...'"
     exit 1
   fi
   local pl=""
@@ -39,7 +39,7 @@ function main() {
       componentPath="components/camel-${component}"
     fi
     if [[ -d "${componentPath}" ]] ; then
-      pl="$pl$(find "${componentPath}" -name pom.xml -exec dirname {} \; | 
sort | tr -s "\n" ",")"
+      pl="$pl$(find "${componentPath}" -name pom.xml -not -path "*/src/it/*" 
-exec dirname {} \; | sort | tr -s "\n" ",")"
     fi
   done
   len=${#pl}

Reply via email to