-
Notifications
You must be signed in to change notification settings - Fork 26
44 lines (36 loc) · 972 Bytes
/
ci.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
43
44
name: ci
on:
- push
- pull_request
jobs:
test:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
# Always test on the latest version and LTS.
java: [ 11, 17, 21, 23 ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6
- name: Cache
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Package
run: mvn -B clean package jacoco:report
- name: Coverage
uses: codecov/[email protected]
with:
file: target/site/jacoco/jacoco.xml