File tree Expand file tree Collapse file tree 1 file changed +9
-22
lines changed Expand file tree Collapse file tree 1 file changed +9
-22
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ name: Test Java
33on :
44 pull_request :
55 branches :
6- - ' **'
7- workflow_call :
6+ - main
87 push :
98 branches :
109 - main
@@ -16,17 +15,11 @@ jobs:
1615 runs-on : ubuntu-latest
1716 steps :
1817 - uses : actions/checkout@v5
19- - name : Cache local Maven repository
20- uses : actions/cache@v4
21- with :
22- path : ~/.m2/repository
23- key : build-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
24- restore-keys : |
25- build-${{ runner.os }}-maven-
26- - uses :
27- AdoptOpenJDK/install-jdk@v1
18+ - uses : actions/setup-java@v5
2819 with :
29- version : ' 11'
20+ distribution : " temurin"
21+ java-version : 17
22+ cache : " maven"
3023 - name : Install dependencies
3124 run : mvn install -DskipTests=true -DskipITs=true-Dmaven.javadoc.skip=true --batch-mode -Dstyle.color=always --show-version
3225 - name : Test
@@ -37,17 +30,11 @@ jobs:
3730 runs-on : ubuntu-latest
3831 steps :
3932 - uses : actions/checkout@v5
40- - name : Cache local Maven repository
41- uses : actions/cache@v4
42- with :
43- path : ~/.m2/repository
44- key : javadoc-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
45- restore-keys : |
46- javadoc-${{ runner.os }}-maven-
47- - uses :
48- AdoptOpenJDK/install-jdk@v1
33+ - uses : actions/setup-java@v5
4934 with :
50- version : ' 11'
35+ distribution : " temurin"
36+ java-version : 17
37+ cache : " maven"
5138 - name : Install dependencies
5239 run : mvn install -DskipTests=true -DskipITs=true -Dmaven.javadoc.skip=true --batch-mode -Dstyle.color=always --show-version
5340 - name : Javadoc
You can’t perform that action at this time.
0 commit comments