File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -25,21 +25,18 @@ jobs:
25
25
JAVA_OPTS : " -XX:+TieredCompilation -XX:TieredStopAtLevel=1"
26
26
steps :
27
27
- uses : actions/checkout@v2.4.0
28
+ with :
29
+ fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
28
30
- name : Set up JDK
29
31
uses : actions/setup-java@v2
30
32
with :
31
33
distribution : ' zulu'
32
34
java-version : ${{ matrix.java_version }}
35
+ cache : ' maven'
33
36
# Value of the distributionManagement/repository/id field of the pom.xml
34
37
server-id : sonatype-nexus-snapshots
35
38
server-username : OSS_USERNAME
36
39
server-password : OSS_PASSWORD
37
- - uses : actions/cache@v2.1.7
38
- with :
39
- path : ~/.m2/repository
40
- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
41
- restore-keys : |
42
- ${{ runner.os }}-maven-
43
40
- name : Cache SonarCloud packages
44
41
uses : actions/cache@v2.1.7
45
42
if : ${{ env.SONAR_TOKEN != null && env.SONAR_TOKEN != '' && matrix.java_version == '11' }}
You can’t perform that action at this time.
0 commit comments