File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 uses : actions/setup-java@v1
4242 with :
4343 java-version : 11
44- - uses : actions/cache@v1
44+ - uses : actions/cache@v2
4545 with :
4646 path : ~/.m2/repository
4747 key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Original file line number Diff line number Diff line change 4141 uses : actions/setup-java@v1
4242 with :
4343 java-version : 11
44- - uses : actions/cache@v1
44+ - uses : actions/cache@v2
4545 with :
4646 path : ~/.m2/repository
4747 key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
5555 - name : Build with Maven
5656 if : github.ref != 'refs/heads/master'
5757 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