File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build & Sonarqube
2+ on :
3+ push :
4+ branches :
5+ - master
6+ - develop
7+ pull_request :
8+ types : [opened, synchronize, reopened]
9+
10+ jobs :
11+ sonarqube :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v3
15+ - name : Set up JDK 11
16+ uses : actions/setup-java@v1
17+ with :
18+ java-version : 11
19+ - name : Cache Gradle packages
20+ uses : actions/cache@v3
21+ with :
22+ path : |
23+ ~/.gradle/caches
24+ ~/.gradle/wrapper
25+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }}
26+ restore-keys : ${{ runner.os }}-gradle
27+ - name : Cache SonarCloud packages
28+ uses : actions/cache@v3
29+ with :
30+ path : ~/.sonar/cache
31+ key : ${{ runner.os }}-sonar
32+ restore-keys : ${{ runner.os }}-sonar
33+ - name : Build and analyze
34+ env :
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
37+ run : ./gradlew build sonarqube --info
You can’t perform that action at this time.
0 commit comments