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
3
3
on :
4
4
pull_request :
5
5
branches :
6
- - ' **'
7
- workflow_call :
6
+ - main
8
7
push :
9
8
branches :
10
9
- main
@@ -16,17 +15,11 @@ jobs:
16
15
runs-on : ubuntu-latest
17
16
steps :
18
17
- 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
28
19
with :
29
- version : ' 11'
20
+ distribution : " temurin"
21
+ java-version : 17
22
+ cache : " maven"
30
23
- name : Install dependencies
31
24
run : mvn install -DskipTests=true -DskipITs=true-Dmaven.javadoc.skip=true --batch-mode -Dstyle.color=always --show-version
32
25
- name : Test
@@ -37,17 +30,11 @@ jobs:
37
30
runs-on : ubuntu-latest
38
31
steps :
39
32
- 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
49
34
with :
50
- version : ' 11'
35
+ distribution : " temurin"
36
+ java-version : 17
37
+ cache : " maven"
51
38
- name : Install dependencies
52
39
run : mvn install -DskipTests=true -DskipITs=true -Dmaven.javadoc.skip=true --batch-mode -Dstyle.color=always --show-version
53
40
- name : Javadoc
You can’t perform that action at this time.
0 commit comments