File tree Expand file tree Collapse file tree 1 file changed +5
-27
lines changed
Expand file tree Collapse file tree 1 file changed +5
-27
lines changed Original file line number Diff line number Diff line change 11name : Java CI
22on : [push]
33jobs :
4- java8 :
4+ build :
55 runs-on : ubuntu-latest
6+ strategy :
7+ matrix :
8+ java : [8, 11, 21]
69 steps :
710 - uses : actions/checkout@v4
811 - name : Set up JDK 1.8
912 uses : actions/setup-java@v4
1013 with :
1114 distribution : ' temurin'
12- java-version : 8
15+ java-version : ${{ matrix.java }}
1316 - name : Test with Maven
1417 run : mvn test
15- java11 :
16- runs-on : ubuntu-latest
17- steps :
18- - uses : actions/checkout@v4
19- - name : Set up JDK 11
20- uses : actions/setup-java@v4
21- with :
22- distribution : ' temurin'
23- java-version : 11
24- cache : maven
25- - name : Test with Maven
26- run : mvn test
27- java21 :
28- runs-on : ubuntu-latest
29- steps :
30- - uses : actions/checkout@v4
31- - name : Set up JDK 21
32- uses : actions/setup-java@v4
33- with :
34- distribution : ' temurin'
35- java-version : 21
36- cache : maven
37- - name : Test with Maven
38- run : mvn test
39-
You can’t perform that action at this time.
0 commit comments