Skip to content

Commit a57aed9

Browse files
authored
Add CI workflow
1 parent 35eb9b9 commit a57aed9

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/maven.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Java CI with Maven
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+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Set up JDK 21
15+
uses: actions/setup-java@v4
16+
with:
17+
java-version: '21'
18+
distribution: 'temurin'
19+
cache: maven
20+
- name: Build with Maven
21+
run: mvn -B package --file pom.xml
22+
23+
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
24+
- name: Update dependency graph
25+
uses: advanced-security/maven-dependency-submission-action@v5

0 commit comments

Comments
 (0)