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 bc04eed1d95 CAMEL-20335: component-test - Exclude target folders (#12803) bc04eed1d95 is described below commit bc04eed1d9510dfcffafded1275723553d421e3f Author: Nicolas Filotto <essob...@users.noreply.github.com> AuthorDate: Tue Jan 16 09:11:32 2024 +0100 CAMEL-20335: component-test - Exclude target folders (#12803) ## Motivation The GitHub Action `component-test` doesn't work as expected with components like `camel-spring-xml` because it tries to build projects in the target folder. ## Modifications: * Exclude the target folders when trying to autodetect the root of sub-projects. --- .github/actions/component-test/component-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/component-test/component-test.sh b/.github/actions/component-test/component-test.sh index 73555c72835..736ebdd4836 100755 --- a/.github/actions/component-test/component-test.sh +++ b/.github/actions/component-test/component-test.sh @@ -39,7 +39,7 @@ function main() { componentPath="components/camel-${component}" fi if [[ -d "${componentPath}" ]] ; then - pl="$pl$(find "${componentPath}" -name pom.xml -not -path "*/src/it/*" -exec dirname {} \; | sort | tr -s "\n" ",")" + pl="$pl$(find "${componentPath}" -name pom.xml -not -path "*/src/it/*" -not -path "*/target/*" -exec dirname {} \; | sort | tr -s "\n" ",")" fi done len=${#pl}