-
Notifications
You must be signed in to change notification settings - Fork 45
43 lines (35 loc) · 876 Bytes
/
build.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
# Workflow file of GitHub Actions
name: build
on:
push:
branches:
- master
- feature/*
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ 8, 11, 17, 21 ]
steps:
- name: Checkout scm
uses: actions/checkout@v4
- name: Set up jdk
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Build with Maven
run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- name: Test with Maven
run: mvn test -B
- name: Codecov
uses: codecov/codecov-action@v4
with:
name: Codecov on jdk ${{ matrix.java }}
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false