File tree Expand file tree Collapse file tree 2 files changed +20
-58
lines changed
Expand file tree Collapse file tree 2 files changed +20
-58
lines changed Original file line number Diff line number Diff line change 1-
21name : Build
32
4- on : [push, pull_request]
3+ on : [push, pull_request, workflow_dispatch ]
54
65jobs :
76 build :
@@ -13,23 +12,25 @@ jobs:
1312 strategy :
1413 fail-fast : false
1514 matrix :
16- java_version : [17]
15+ java_version : [11, 17]
1716 os : [ubuntu-latest]
1817
1918 steps :
20- - uses : actions/checkout@v2
21- - name : Set up Java
22- uses : oracle-actions/setup-java@v1
23- with :
24- release : ${{ matrix.java_version }}
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 : Build with Maven
34- run : mvn package
35-
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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments