File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : SonarCloud
1+ name : Build and Test
22on :
33 push :
44 branches :
77 types : [opened, synchronize, reopened]
88jobs :
99 build :
10- name : Build and analyze
10+ name : Build and Test
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v3
14- with :
15- fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
16- - name : Set up JDK 17
14+ - name : Set up JDK 21
1715 uses : actions/setup-java@v3
1816 with :
19- java-version : 17
20- distribution : ' zulu' # Alternative distribution options are available.
21- - name : Cache SonarCloud packages
22- uses : actions/cache@v3
23- with :
24- path : ~/.sonar/cache
25- key : ${{ runner.os }}-sonar
26- restore-keys : ${{ runner.os }}-sonar
17+ java-version : 21
18+ distribution : ' temurin'
2719 - name : Cache Maven packages
2820 uses : actions/cache@v3
2921 with :
3022 path : ~/.m2
3123 key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
3224 restore-keys : ${{ runner.os }}-m2
33- - name : Build and analyze
34- env :
35- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
36- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
37- run : mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=rcsb_ciftools-java
25+ - name : Build and test
26+ run : mvn -B clean verify
You can’t perform that action at this time.
0 commit comments