File tree Expand file tree Collapse file tree 1 file changed +10
-24
lines changed Expand file tree Collapse file tree 1 file changed +10
-24
lines changed Original file line number Diff line number Diff line change 1- name : Java CI Task - master
1+ name : CI PRs
22
33on :
44 push :
5- branches :
6- - master
75 pull_request :
86 branches :
9- - master
7+ - main
108
119jobs :
1210 build :
13-
14- runs-on : ${{ matrix.os }}
15- strategy :
16- matrix :
17- os : [ubuntu-latest]
18-
11+ runs-on : ubuntu-latest
12+ name : CI PR Build
1913 steps :
20- - uses : actions/checkout@v1
21- - name : Cache maven repository
22- uses : actions/cache@v1
23- with :
24- path : .m2
25- key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
26- restore-keys : |
27- ${{ runner.os }}-m2-
28- - name : Set up JDK 1.8
29- uses : actions/setup-java@v1
30- with :
31- java-version : 1.8
32- - name : Build with Maven
33- run : mvn "-Dmaven.repo.local=.m2" -U -B package -s .settings.xml
14+ - uses : actions/checkout@v2
15+ - uses : actions/setup-java@v2
16+ with :
17+ distribution : adopt
18+ java-version : 17
19+ - run : mvn "-Dmaven.repo.local=.m2" -U -B package -s .settings.xml
You can’t perform that action at this time.
0 commit comments