File tree Expand file tree Collapse file tree 1 file changed +26
-21
lines changed Expand file tree Collapse file tree 1 file changed +26
-21
lines changed Original file line number Diff line number Diff line change 11name : Build
22
33on : [push, pull_request, workflow_dispatch]
4-
54jobs :
65 build :
7-
86 runs-on : ${{ matrix.os }}
97 permissions :
108 contents : read
119 packages : write
1210 strategy :
1311 fail-fast : false
1412 matrix :
15- java_version : [11,17 ]
13+ java_version : [11, 17, 19 ]
1614 os : [ubuntu-latest]
1715
1816 steps :
19- - uses : actions/checkout@v2
20- - name : Set up Java
21- uses : actions/setup-java@v2
22- with :
23- java-version : ${{ matrix.java_version }}
24- distribution : ' zulu'
25- - name : Maven cache
26- uses : actions/cache@v2
27- env :
28- cache-name : maven-cache
29- with :
30- path :
31- ~/.m2
32- key : build-${{ env.cache-name }}
33- - name : Maven version
34- run : mvn --version
35- - name : Build with Maven
36- run : mvn clean test
17+ - uses : actions/checkout@v2
18+ - name : Set up Java
19+ uses : actions/setup-java@v2
20+ with :
21+ java-version : ${{ matrix.java_version }}
22+ distribution : " zulu"
23+ - name : Maven cache
24+ uses : actions/cache@v2
25+ env :
26+ cache-name : maven-cache
27+ with :
28+ path : ~/.m2
29+ key : build-${{ env.cache-name }}
30+ - name : Maven version
31+ run : mvn --version
32+ - name : Build with Maven
33+ env :
34+ JAVA_VERSION : ${{ matrix.java_version }}
35+ run : |
36+ if (( JAVA_VERSION < 19 ));
37+ then
38+ mvn clean test -pl "!:avaje-http-nima-generator"
39+ else
40+ mvn clean test
41+ fi
You can’t perform that action at this time.
0 commit comments