Bump github/codeql-action from 2 to 3
[storage-units.git] / .github / workflows / verify.yml
blob0c2c4a863b323531a7bdf17554c1f910b8a072be
1 # SPDX-FileCopyrightText: The Storage-Units Authors
2 # SPDX-License-Identifier: 0BSD
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: Checkout
22         uses: actions/checkout@v4
23       - id: java
24         name: Setup Java
25         uses: actions/setup-java@v4
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