Skip to content

Commit 19c5453

Browse files
committed
chore(ci): Add Maven build workflow for CI integration
1 parent 69dc1b3 commit 19c5453

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ end_of_line = lf
66
indent_size = 4
77
indent_style = space
88
insert_final_newline = true
9-
trim_trailing_whitespace = true
9+
trim_trailing_whitespace = true
10+
11+
[*.yml]
12+
indent_size = 2

.github/workflows/maven-build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Maven Build
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
name: maven build
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
# Build with JDK 17
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v4
20+
with:
21+
cache: maven
22+
java-version: '17'
23+
distribution: 'temurin'
24+
- name: Build with Maven
25+
run: mvn -B package --file pom.xml
26+
27+
# Upload coverage reports to Codecov
28+
- name: Upload coverage reports to Codecov
29+
uses: codecov/codecov-action@v4
30+
with:
31+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)