File tree Expand file tree Collapse file tree 1 file changed +7
-33
lines changed
Expand file tree Collapse file tree 1 file changed +7
-33
lines changed Original file line number Diff line number Diff line change @@ -3,41 +3,15 @@ name: Java CI
33on : [push]
44
55jobs :
6- test_eight :
7-
8- runs-on : ubuntu-latest
9-
10- steps :
11- - uses : actions/checkout@v1
12- - name : Set up JDK 1.8
13- uses : actions/setup-java@v1
14- with :
15- java-version : 1.8
16- - name : Build with Maven
17- run : mvn test
18-
19- test_nine :
20-
6+ test :
217 runs-on : ubuntu-latest
22-
23- steps :
24- - uses : actions/checkout@v1
25- - name : Set up JDK 9
26- uses : actions/setup-java@v1
27- with :
28- java-version : 9
29- - name : Build with Maven
30- run : mvn test
31-
32- test_eleven :
33-
34- runs-on : ubuntu-latest
35-
8+ strategy :
9+ matrix :
10+ java-version : [ 8, 9, 11 ]
3611 steps :
37- - uses : actions/checkout@v1
38- - name : Set up JDK 11
39- uses : actions/setup-java@v1
12+ - uses : actions/checkout@v2
13+ - uses : actions/setup-java@v1
4014 with :
41- java-version : 11
15+ java-version : ${{ matrix.java-version }}
4216 - name : Build with Maven
4317 run : mvn test
You can’t perform that action at this time.
0 commit comments