Skip to content

Commit 39f0c15

Browse files
author
Sebastian Hoß
committed
verify commits
1 parent 9fb9a99 commit 39f0c15

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/verify.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SPDX-FileCopyrightText: The Storage-Units Authors
2+
# SPDX-License-Identifier: 0BSD
3+
4+
name: Verify Commits
5+
on:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
env:
11+
JAVA_VERSION: 17
12+
JAVA_PACKAGE: jdk
13+
JAVA_ARCH: x64
14+
JAVA_DISTRO: temurin
15+
jobs:
16+
build:
17+
name: Build Project
18+
runs-on: ubuntu-latest
19+
steps:
20+
- id: checkout
21+
name: Clone Git Repository
22+
uses: actions/checkout@v3
23+
- id: java
24+
name: Setup Java
25+
uses: actions/setup-java@v3
26+
with:
27+
java-version: ${{ env.JAVA_VERSION }}
28+
java-package: ${{ env.JAVA_PACKAGE }}
29+
architecture: ${{ env.JAVA_ARCH }}
30+
distribution: ${{ env.JAVA_DISTRO }}
31+
- id: cache
32+
name: Cache Maven Repository
33+
uses: actions/cache@v3
34+
with:
35+
path: ~/.m2/repository
36+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
37+
restore-keys: |
38+
${{ runner.os }}-maven-
39+
- id: maven
40+
name: Maven Verify
41+
run: mvn --batch-mode verify

0 commit comments

Comments
 (0)