-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 942 Bytes
/
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
43
name: GitHub Action CI build
on:
push:
# branches-ignore:
# - dependabot/**
pull_request:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
java: [11, 17, 18, 19]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configura artifact caching
uses: actions/[email protected]
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: adopt
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build with Maven
run: ./mvnw -e -B -V -ntp clean package
- name: Code coverage with codecov
uses: codecov/codecov-action@v3