File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,20 @@ jobs:
3737
3838 - name : Cache SonarQube packages
3939 uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
40+ if : ${{ github.secret_source == 'Actions' }}
4041 with :
4142 path : ~/.sonar/cache
4243 key : ${{ runner.os }}-sonar
4344 restore-keys : ${{ runner.os }}-sonar
4445
4546 - name : Build and analyze
47+ if : ${{ github.secret_source == 'None' }}
48+ env :
49+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
50+ run : ./gradlew build jacocoTestReport
51+
52+ - name : Build and analyze (Sonar)
53+ if : ${{ github.secret_source == 'Actions' }}
4654 env :
4755 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
4856 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments