Skip to content

Commit 1c06d03

Browse files
committed
Update Github build.yml file
1 parent dd701b3 commit 1c06d03

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,30 @@ on:
33
push:
44
branches:
55
- develop
6+
- master
67
pull_request:
78
types: [opened, synchronize, reopened]
89
jobs:
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') }}
@@ -34,11 +35,4 @@ jobs:
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

0 commit comments

Comments
 (0)