This repository was archived by the owner on Jun 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
- name : Build
2
1
2
+ name : SonarCloud
3
3
on :
4
4
push :
5
5
branches :
@@ -18,25 +18,23 @@ jobs:
18
18
with :
19
19
fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
20
20
- name : Set up JDK 22
21
- uses : actions/setup-java@v2
21
+ uses : actions/setup-java@v3
22
22
with :
23
23
distribution : ' temurin' # or 'adopt', depending on your preference
24
24
java-version : ' 22'
25
- - name : Cache SonarQube packages
26
- uses : actions/cache@v1
25
+ - name : Cache SonarCloud packages
26
+ uses : actions/cache@v3
27
27
with :
28
28
path : ~/.sonar/cache
29
29
key : ${{ runner.os }}-sonar
30
30
restore-keys : ${{ runner.os }}-sonar
31
31
- name : Cache Maven packages
32
- uses : actions/cache@v1
32
+ uses : actions/cache@v3
33
33
with :
34
34
path : ~/.m2
35
35
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
36
36
restore-keys : ${{ runner.os }}-m2
37
37
- name : Build and analyze
38
38
env :
39
39
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
40
- SONAR_HOST_URL : ${{ secrets.SONAR_HOST_URL }}
41
- run : mvn clean verify sonar:sonar -Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY }} -Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dsonar.organization={{ secrets.SONAR_PROJECT_ORG }}
42
-
40
+ run : mvn clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=SVAdithya_KafkaStudy
You can’t perform that action at this time.
0 commit comments