File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 33 push :
44 branches :
55 - develop
6+ - master
67 pull_request :
78 types : [opened, synchronize, reopened]
89jobs :
910 build :
1011 name : Build
1112 runs-on : ubuntu-latest
1213 steps :
13- - uses : actions/checkout@v3
14+ - uses : actions/checkout@v4
1415 with :
1516 fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
1617 - name : Set up JDK 21
17- uses : actions/setup-java@v3
18+ uses : actions/setup-java@v4
1819 with :
1920 distribution : ' adopt'
2021 java-version : ' 21'
2122 - name : Cache SonarCloud packages
22- uses : actions/cache@v3
23+ uses : actions/cache@v4
2324 with :
2425 path : ~/.sonar/cache
2526 key : ${{ runner.os }}-sonar
2627 restore-keys : ${{ runner.os }}-sonar
2728 - name : Cache Maven packages
28- uses : actions/cache@v3
29+ uses : actions/cache@v4
2930 with :
3031 path : ~/.m2
3132 key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
3435 env :
3536 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
3637 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
37- run : mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=BentoBoxWorld_MagicCobblestoneGenerator
38- - run : mvn --batch-mode clean org.jacoco:jacoco-maven-plugin:prepare-agent install
39- - run : mkdir staging && cp target/*.jar staging
40- - name : Save artifacts
41- uses : actions/upload-artifact@v3
42- with :
43- name : Package
44- path : staging
38+ run : mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
You can’t perform that action at this time.
0 commit comments