We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 039dacf commit 1c90618Copy full SHA for 1c90618
1 file changed
.github/workflows/maven-ci.yml
@@ -0,0 +1,34 @@
1
+name: Build & Test with Maven
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
8
9
+jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: read
14
15
+ steps:
16
+ - name: Checkout repository
17
+ uses: actions/checkout@v4
18
19
+ - name: Set up JDK 17
20
+ uses: actions/setup-java@v4
21
+ with:
22
+ java-version: '17'
23
+ distribution: 'temurin'
24
25
+ - name: Cache Maven packages
26
+ uses: actions/cache@v4
27
28
+ path: ~/.m2/repository
29
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
30
+ restore-keys: |
31
+ ${{ runner.os }}-maven-
32
33
+ - name: Run Tests with Maven
34
+ run: mvn -B verify --file pom.xml
0 commit comments