Run unit tests with JDK matrix (#43240)

Closes #16039

Signed-off-by: stianst <stianst@gmail.com>
This commit is contained in:
Stian Thorgersen
2025-10-31 13:21:44 +01:00
committed by GitHub
parent 1048c8d9c9
commit a34b14796f
2 changed files with 15 additions and 9 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/bash -e
find . -path '**/src/test/java' -type d \
| grep -v -E '\./(docs|distribution|misc|operator|tests|testsuite|test-framework|quarkus)/' \
| sed 's|/src/test/java||' \
| sed 's|./||' \
| sort \
| tr '\n' ',' \
| sed 's/,$//'

View File

@@ -114,14 +114,7 @@ jobs:
- name: Run unit tests
run: |
SEP=""
PROJECTS=""
for i in `find -name '*Test.java' -type f | egrep -v './(operator|testsuite|quarkus|docs|tests|test-framework)/' | sed 's|/src/test/java/.*||' | sort | uniq | sed 's|./||'`; do
PROJECTS="$PROJECTS$SEP$i"
SEP=","
done
./mvnw test -pl "$PROJECTS" -am
./mvnw test -am -pl "$(.github/scripts/find-modules-with-unit-tests.sh)"
base-integration-tests:
name: Base IT
@@ -292,7 +285,7 @@ jobs:
./mvnw test -pl quarkus/tests/integration ${PARAMS["${{ matrix.suite }}"]} 2>&1 | misc/log/trimmer.sh
jdk-integration-tests:
name: Java Distribution IT
name: Java Distribution IT/UT
needs: build
timeout-minutes: 100
strategy:
@@ -332,6 +325,10 @@ jobs:
run:
./mvnw install -e -DskipTests -DskipExamples -DskipProtoLock=true
- name: Run unit tests
run: |
./mvnw test -pl "$(.github/scripts/find-modules-with-unit-tests.sh)"
- uses: ./.github/actions/upload-flaky-tests
name: Upload flaky tests
env: