File tree 2 files changed +2
-9
lines changed
2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 41
41
uses : actions/setup-java@v1
42
42
with :
43
43
java-version : 11
44
- - uses : actions/cache@v1
44
+ - uses : actions/cache@v2
45
45
with :
46
46
path : ~/.m2/repository
47
47
key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Original file line number Diff line number Diff line change 41
41
uses : actions/setup-java@v1
42
42
with :
43
43
java-version : 11
44
- - uses : actions/cache@v1
44
+ - uses : actions/cache@v2
45
45
with :
46
46
path : ~/.m2/repository
47
47
key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
55
55
- name : Build with Maven
56
56
if : github.ref != 'refs/heads/master'
57
57
run : xvfb-run mvn clean verify
58
- - name : Build with Maven and run SonarQube analysis
59
- if : github.ref == 'refs/heads/master'
60
- run : xvfb-run mvn clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
61
- env :
62
- # These two env variables are needed for sonar analysis
63
- GITHUB_TOKEN : ${{ secrets.REPOSITORY_ACCESS_TOKEN }}
64
- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments