File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,22 @@ jobs:
24
24
distribution : ' temurin'
25
25
java-version : ' 11'
26
26
cache : ' gradle'
27
+ - name : Cache SonarCloud packages
28
+ uses : actions/cache@v1
29
+ with :
30
+ path : ~/.sonar/cache
31
+ key : ${{ runner.os }}-sonar
32
+ restore-keys : ${{ runner.os }}-sonar
27
33
- uses : actions/cache@v1
28
34
with :
29
35
path : ~/.gradle/caches
30
36
key : ${{ runner.os }}-gradle
31
37
restore-keys : ${{ runner.os }}-gradle
32
38
- name : Build with Gradle
33
- run : chmod +x gradlew && ./gradlew test jacocoTestReport
39
+ env :
40
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
+ SONAR_TOKEN : 19107c464b65c0769768d4564dd1c9b0c2822edd
42
+ run : chmod +x gradlew && ./gradlew spotlessJavaCheck test jacocoTestReport sonarqube -Dsonar.projectKey=javadev_LeetCode-in-Kotlin -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=javadev-github --no-daemon
34
43
- uses : codecov/codecov-action@v1
35
44
with :
36
45
file : ./**/build/reports/jacoco/test/jacocoTestReport.xml
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
kotlin(" jvm" ) version " 1.6.10"
3
3
jacoco
4
+ org.sonarqube version " 3.3"
4
5
`maven- publish`
5
6
}
6
7
You can’t perform that action at this time.
0 commit comments