-
Notifications
You must be signed in to change notification settings - Fork 23
39 lines (32 loc) · 940 Bytes
/
maven.yml
File metadata and controls
39 lines (32 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Maven CI
on: [push, pull_request]
permissions: read-all
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest ]
java-version: [ 17 ]
distro: [ 'zulu', 'temurin' ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2
with:
submodules: true
- name: Set up JDK 8 and ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distro }}
# We install two JDKs:
# * The first one is used by tests through Maven Toolchains.
# * The second one is used by Maven itself to perform the build.
#
# WARNING: The order matters.
# The last version specified will be assigned to JAVA_HOME.
java-version: |
8
${{ matrix.java-version }}
- name: Build with Maven
shell: bash
run: mvn verify