File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Sonar Updated
2+ ' on ' :
3+ push :
4+ branches :
5+ - main
6+ pull_request :
7+ branches :
8+ - main
9+ pull_request_target :
10+ types : [labeled]
11+ branches :
12+ - main
13+ schedule :
14+ - cron : 0 16 * * *
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+ if : contains(github.event.pull_request.labels.*.name, 'tests can be run')
19+ steps :
20+ - uses : actions/checkout@v2
21+ with :
22+ fetch-depth : 0
23+ - name : Set up JDK
24+ uses : actions/setup-java@v1
25+ with :
26+ java-version : 11
27+ - name : Build with Maven
28+ run : mvn clean install -Dgpg.signature.skip=true --file pom.xml
29+ - name : Sonar Scan
30+ env :
31+ GITHUB_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
32+ SONAR_TOKEN : ' ${{ secrets.SONAR_TOKEN }}'
33+ run : >-
34+ mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
35+ -Dsonar.projectName=client-encryption-java
36+ -Dsonar.projectKey=Mastercard_client-encryption-java
37+ -Dsonar.organization=mastercard -Dsonar.host.url=https://sonarcloud.io
38+ -Dsonar.login=$SONAR_TOKEN -Dsonar.cpd.exclusions=**/OkHttp*.java
39+ -Dsonar.exclusions=**/*.xml -Dgpg.signature.skip=true
You can’t perform that action at this time.
0 commit comments