-
Notifications
You must be signed in to change notification settings - Fork 535
42 lines (40 loc) · 1.21 KB
/
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
name: CI
on:
push:
branches: [master]
pull_request:
types: [ opened, reopened ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11', '17', '18']
# Kotlin needs access to java.util
include:
- java: '11'
maven-opts: ''
maven-params: -pl '!spring/test/shedlock-springboot-future-test'
- java: '17'
maven-opts: --add-opens java.base/java.util=ALL-UNNAMED
maven-params: ''
- java: '18'
maven-opts: --add-opens java.base/java.util=ALL-UNNAMED
maven-params: ''
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
cache: 'maven'
- name: Build with Maven
env:
MAVEN_OPTS: ${{ matrix.maven-opts }}
run: mvn ${{ matrix.maven-params }} test javadoc:javadoc
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
report_paths: '**/target/surefire-reports/TEST-*.xml'