Skip to content

Commit d7fd784

Browse files
Merge pull request #238 from SAP/workflow-maven-verify
Add Workflow for Maven Build
2 parents 0eff138 + 6a2f754 commit d7fd784

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/maven-verify.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Maven Verify
2+
3+
on:
4+
pull_request:
5+
branches:
6+
# - main
7+
- release-4
8+
9+
jobs:
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-release-4:
26+
if: github.base_ref == 'release-4'
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- name: Set up JDK 17
31+
uses: actions/setup-java@v4
32+
with:
33+
distribution: 'temurin'
34+
java-version: '17'
35+
- name: Build with Maven
36+
run: mvn clean verify

0 commit comments

Comments
 (0)