@@ -12,55 +12,29 @@ jobs:
1212 build_and_verify :
1313 name : Build and Verify
1414 if : ${{ github.repository == 'spring-projects/spring-grpc' }}
15+ strategy :
16+ matrix :
17+ include :
18+ - javaVersion : 25
19+ distribution : ' liberica'
20+ - javaVersion : 17
21+ distribution : ' temurin'
1522 runs-on : ubuntu-latest
1623 steps :
1724 - uses : actions/checkout@v4
18- - name : Set up JDK 25
25+ - name : Set up Java ${{ matrix.javaVersion }} ${{ matrix.distribution }}
1926 uses : actions/setup-java@v4
2027 with :
21- java-version : ' 25 '
22- distribution : ' liberica '
28+ java-version : ${{ matrix.javaVersion }}
29+ distribution : ${{ matrix.distribution }}
2330 cache : maven
24- - name : Build, test, and run samples using Java 25 w/ target=17
31+ - name : Build, test, and run samples ( Java ${{ matrix.javaVersion }} ${{ matrix.distribution }})
2532 run : |
2633 ./mvnw -B clean install
27-
28- - name : Set up JDK 17
29- uses : actions/setup-java@v4
30- with :
31- java-version : ' 17'
32- distribution : ' temurin'
33- cache : maven
34- - name : Run samples built w/ Java 25 w/ target=17 using Java 17
35- run : |
36- pushd samples > /dev/null
37- ../mvnw test \
38- -Dmaven-checkstyle-plugin.config.location=../src/checkstyle
39- popd > /dev/null
40-
41- - name : Set up JDK 25
42- uses : actions/setup-java@v4
43- with :
44- java-version : ' 25'
45- distribution : ' liberica'
46- cache : maven
47- - name : Build and run samples using Java 25 w/ target=25
48- run : |
49- pushd samples > /dev/null
50- ../mvnw clean install \
51- -pl '!grpc-server-kotlin' \
52- -Dmaven-checkstyle-plugin.config.location=../src/checkstyle \
53- -Djava.version=25
54- ../mvnw clean install \
55- -pl 'grpc-server-kotlin' \
56- -Dmaven-checkstyle-plugin.config.location=../src/checkstyle \
57- -Djava.version=24
58- popd > /dev/null
59-
60- - name : Capture Test Results
34+ - name : Upload Build Reports (Java ${{ matrix.javaVersion }} ${{ matrix.distribution }})
6135 if : failure()
6236 uses : actions/upload-artifact@v4
6337 with :
64- name : test-results
38+ name : test-results-java-${{ matrix.javaVersion }}-${{ matrix.distribution }}
6539 path : ' */target/surefire-reports/*.*'
6640 retention-days : 3
0 commit comments