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 3
3
push :
4
4
branches :
5
5
- develop
6
+ - master
6
7
pull_request :
7
8
types : [opened, synchronize, reopened]
8
9
jobs :
9
10
build :
10
11
name : Build
11
12
runs-on : ubuntu-latest
12
13
steps :
13
- - uses : actions/checkout@v3
14
+ - uses : actions/checkout@v4
14
15
with :
15
16
fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
16
17
- name : Set up JDK 21
17
- uses : actions/setup-java@v3
18
+ uses : actions/setup-java@v4
18
19
with :
19
20
distribution : ' adopt'
20
21
java-version : ' 21'
21
22
- name : Cache SonarCloud packages
22
- uses : actions/cache@v3
23
+ uses : actions/cache@v4
23
24
with :
24
25
path : ~/.sonar/cache
25
26
key : ${{ runner.os }}-sonar
26
27
restore-keys : ${{ runner.os }}-sonar
27
28
- name : Cache Maven packages
28
- uses : actions/cache@v3
29
+ uses : actions/cache@v4
29
30
with :
30
31
path : ~/.m2
31
32
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
34
35
env :
35
36
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
36
37
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