forked from ocbaker/jaaslounge-decoding
-
Notifications
You must be signed in to change notification settings - Fork 20
42 lines (41 loc) · 1.16 KB
/
maven.yml
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
40
41
42
name: Java CI
on:
workflow_dispatch:
push:
branches:
- master
- develop
pull_request:
branches-ignore:
- tag/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build with Maven
run: mvn -B clean package --file pom.xml -U
# run: mvn -B clean package jacoco:report --file pom.xml -U
# - uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# test against latest update of each major Java version, as well as specific updates of LTS versions:
java: [ 17, 18, 19, 20, 21 ]
os: [ ubuntu-22.04, windows-2022, macos-12 ]
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Build with Maven
run: mvn -B clean package --file pom.xml -U