Skip to content

Commit bc01dbc

Browse files
committed
Enable maven quite mode and search recursively for graalvm profiles to make sure sub-sub-modules are also covered.
1 parent a38441d commit bc01dbc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/check-build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- id: build-maven
8383
name: Build (Maven)
8484
run: |
85-
mvn -B install --file pom.xml
85+
mvn -B -q install --file pom.xml
8686
8787
graalvm-build:
8888
runs-on: ubuntu-latest
@@ -100,16 +100,16 @@ jobs:
100100
name: GraalVM Native Test
101101
run: |
102102
# Build the entire project first to ensure test-jar dependencies are available
103-
mvn -B install -DskipTests
103+
mvn -B -q install -DskipTests
104104
105-
# Find modules with graalvm-native profile and run tests.
105+
# Find modules with graalvm-native profile and run tests recursively.
106106
# This will make sure to discover new GraalVM supported modules automatically in the future.
107-
for module in powertools-*/pom.xml; do
107+
find . -name "pom.xml" -path "./powertools-*" | while read module; do
108108
if grep -q "<id>graalvm-native</id>" "$module"; then
109109
module_dir=$(dirname "$module")
110110
echo "Regenerating GraalVM metadata for $module_dir"
111-
mvn -B -f "$module" -Pgenerate-graalvm-files clean test
111+
mvn -B -q -f "$module" -Pgenerate-graalvm-files clean test
112112
echo "Running GraalVM native tests for $module_dir"
113-
mvn -B -f "$module" -Pgraalvm-native test
113+
mvn -B -q -f "$module" -Pgraalvm-native test
114114
fi
115115
done

0 commit comments

Comments
 (0)