updated cache to v2 and removed SQ analysis

This commit is contained in:
Subhrodip Mohanta 2020-08-17 11:28:33 +05:30
parent 79a6af703e
commit 241f93f3cc
No known key found for this signature in database
GPG Key ID: 893C0EB01C044936
2 changed files with 2 additions and 9 deletions

View File

@ -41,7 +41,7 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

View File

@ -41,7 +41,7 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@ -55,10 +55,3 @@ jobs:
- name: Build with Maven
if: github.ref != 'refs/heads/master'
run: xvfb-run mvn clean verify
- name: Build with Maven and run SonarQube analysis
if: github.ref == 'refs/heads/master'
run: xvfb-run mvn clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
env:
# These two env variables are needed for sonar analysis
GITHUB_TOKEN: ${{ secrets.REPOSITORY_ACCESS_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}