Skip to content

Commit 16544ea

Browse files
committed
chore(ci): Run unit tests for GraalVM as well during build.
1 parent 700a855 commit 16544ea

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/check-build.yml

Lines changed: 5 additions & 8 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 -q install --file pom.xml
85+
mvn -B install --file pom.xml
8686
8787
graalvm-build:
8888
runs-on: ubuntu-latest
@@ -99,17 +99,14 @@ jobs:
9999
- id: graalvm-native-test
100100
name: GraalVM Native Test
101101
run: |
102-
# Build the entire project first to ensure test-jar dependencies are available
103-
mvn -B -q install -DskipTests
104-
105-
# Find modules with graalvm-native profile and run tests recursively.
102+
# Find modules with graalvm-native profile and run tests.
106103
# This will make sure to discover new GraalVM supported modules automatically in the future.
107-
find . -name "pom.xml" -path "./powertools-*" | while read module; do
104+
for module in powertools-*/pom.xml; do
108105
if grep -q "<id>graalvm-native</id>" "$module"; then
109106
module_dir=$(dirname "$module")
110107
echo "Regenerating GraalVM metadata for $module_dir"
111-
mvn -B -q -f "$module" -Pgenerate-graalvm-files clean test
108+
mvn -B -f "$module" -Pgenerate-graalvm-files clean test
112109
echo "Running GraalVM native tests for $module_dir"
113-
mvn -B -q -f "$module" -Pgraalvm-native test
110+
mvn -B -f "$module" -Pgraalvm-native test
114111
fi
115112
done

0 commit comments

Comments
 (0)