Skip to content

Commit 2c5f6a8

Browse files
Add Workflow for main branch
The main branch requires a different build: - use JDK 11 - separate clean & verify Maven command Signed-off-by: Karsten Schnitter <k.schnitter@sap.com>
1 parent 281d609 commit 2c5f6a8

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/maven-verify.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,27 @@ name: Maven Verify
33
on:
44
pull_request:
55
branches:
6+
- main
67
- release-4
78

89
jobs:
9-
build:
10+
build-main:
11+
if: github.base_ref == 'main'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up JDK 11
16+
uses: actions/setup-java@v4
17+
with:
18+
distribution: 'temurin'
19+
java-version: '11'
20+
- name: Clean with Maven
21+
run: mvn clean
22+
- name: Build with Maven
23+
run: mvn verify
24+
25+
build-releas-4:
26+
if: github.base_ref == 'release-4'
1027
runs-on: ubuntu-latest
1128
steps:
1229
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)