Skip to content

Commit 9b26411

Browse files
Setup Github Automations
- dependabot for main and release-3 branch - PR builds for main and release-3 branch Signed-off-by: Karsten Schnitter <[email protected]>
1 parent a116bb8 commit 9b26411

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.github/dependabot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "maven"
4+
directory: "/"
5+
schedule:
6+
interval: "hourly"
7+
target-branch: "main"
8+
labels:
9+
- "dependencies"
10+
- "main-branch"
11+
open-pull-requests-limit: 10
12+
- package-ecosystem: "maven"
13+
directory: "/"
14+
schedule:
15+
interval: "daily"
16+
target-branch: "release-3"
17+
labels:
18+
- "dependencies"
19+
- "release-3"

.github/workflows/maven-verify.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Maven Verify
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
- release-3
9+
10+
jobs:
11+
build-main:
12+
if: github.base_ref == 'release-3'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up JDK 11
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: 'temurin'
20+
java-version: '11'
21+
- name: Clean with Maven
22+
run: mvn clean
23+
- name: Build with Maven
24+
run: mvn verify
25+
26+
build-release-4:
27+
if: github.base_ref == 'main'
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- name: Set up JDK 17
32+
uses: actions/setup-java@v4
33+
with:
34+
distribution: 'temurin'
35+
java-version: '17'
36+
- name: Build with Maven
37+
run: mvn clean verify

0 commit comments

Comments
 (0)