Skip to content

Commit 016da56

Browse files
Create maven-ci.yml
1 parent 212af39 commit 016da56

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/maven-ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Maven Build CI"
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout Source
15+
uses: actions/checkout@v4
16+
17+
- name: Set Up JDK 17
18+
uses: actions/setup-java@v4
19+
with:
20+
distribution: "temurin"
21+
java-version: "17"
22+
23+
- name: Cache Maven Packages
24+
uses: actions/cache@v4
25+
with:
26+
path: ~/.m2
27+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
28+
restore-keys: |
29+
${{ runner.os }}-m2-
30+
31+
- name: Build with Maven
32+
run: mvn -B clean install

0 commit comments

Comments
 (0)