File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,26 +10,27 @@ jobs:
1010 name : Build and analyze
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v6
1414 with :
1515 fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
1616 - name : Set up JDK 11
17- uses : actions/setup-java@v1
17+ uses : actions/setup-java@v5
1818 with :
19+ distribution : ' temurin'
1920 java-version : 11
2021 - name : Cache SonarCloud packages
21- uses : actions/cache@v1
22+ uses : actions/cache@v5
2223 with :
2324 path : ~/.sonar/cache
2425 key : ${{ runner.os }}-sonar
2526 restore-keys : ${{ runner.os }}-sonar
2627 - name : Cache Maven packages
27- uses : actions/cache@v1
28+ uses : actions/cache@v5
2829 with :
2930 path : ~/.m2
3031 key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
3132 restore-keys : ${{ runner.os }}-m2
3233 - name : Build and analyze
3334 env :
3435 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
35- run : mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=testn2
36+ run : mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=ross-bragg-sonarsource_java-test -Dsonar.organization=ross-bragg-sonarsource -Dsonar.host.url=https://dev10.sc-dev10.io
You can’t perform that action at this time.
0 commit comments