Skip to content

Commit 502822f

Browse files
committed
Add GitHub Actions workflow
1 parent 8b86539 commit 502822f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Java Maven CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout Repository
16+
uses: actions/checkout@v3
17+
18+
- name: Set up JDK 18
19+
uses: actions/setup-java@v3
20+
with:
21+
java-version: '18'
22+
distribution: 'temurin'
23+
24+
- name: Build with Maven
25+
run: mvn clean install
26+
27+
- name: Run Tests
28+
run: mvn test
29+
30+
- name: Generate Maven Site (Reports)
31+
run: mvn site

0 commit comments

Comments
 (0)