-
Notifications
You must be signed in to change notification settings - Fork 76
68 lines (67 loc) · 2.13 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on: [ push, pull_request ]
jobs:
supported-jdk:
name: ${{ matrix.title }}
continue-on-error: ${{ matrix.continue-on-error }}
strategy:
fail-fast: false
matrix:
include:
- title: "Supported JDK 8"
continue-on-error: false
cache-id: "jdk8"
java: 8
dist: temurin
flags: "-DdisableStaticAnalysis"
- title: "Supported JDK 11"
continue-on-error: false
cache-id: "jdk11"
java: 11
dist: temurin
flags: ""
- title: "Supported JDK 17"
continue-on-error: false
cache-id: "jdk17"
java: 17
dist: temurin
flags: ""
- title: "Experimental JDK EA (simplified)"
continue-on-error: false
cache-id: "jdk-ea-simple"
java: "18-ea"
dist: zulu
flags: "-Dexperimental -DdisableStaticAnalysis"
- title: "Experimental JDK EA (full)"
continue-on-error: true
cache-id: "jdk-ea-full"
java: "18-ea"
dist: zulu
flags: ""
runs-on: ubuntu-latest
steps:
- name: 'Checkout from Git'
uses: actions/checkout@v2
- name: 'Cache Maven repo'
uses: actions/[email protected]
with:
path: |
~/.m2/repository
target/spotless-node-modules-prettier-format
key: ${{ runner.os }}-mvn-${{ matrix.cache-id }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-mvn-${{ matrix.cache-id }}
- name: 'Set up JDK ${{ matrix.java }}'
uses: actions/setup-java@v2
with:
distribution: ${{ matrix.dist }}
java-version: ${{ matrix.java }}
- name: 'Set up node' # Needed for formatting with prettier
uses: actions/[email protected]
with:
node-version: 12
- name: 'Display JDK version'
run: java -version
- name: 'Run Maven'
# Don't clean, or whatever was cached in target/spotless-node-modules-prettier-format is lost
run: mvn verify ${{ matrix.flags }}