-
Notifications
You must be signed in to change notification settings - Fork 35
51 lines (44 loc) · 1.13 KB
/
ci.yaml
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
name: GitHub CI
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
MAVEN_OPTS: '-Xms2048m -Xmx2048m'
MAVEN_ARGS: >-
--show-version
--errors
--batch-mode
--no-transfer-progress
-Dinvoker.streamLogsOnFailures=true
-Pnonindy
jobs:
ci:
strategy:
fail-fast: false
matrix:
jdk: [ 11, 21 ]
# empty == use pom.xml
groovy-version: ['3.0.18', '4.0.15', '5.0.0-alpha-2']
exclude:
# JDK 21 support was added in 4.0.11.
- jdk: 21
groovy-version: '3.0.18'
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: jdk setup
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: 'zulu'
- name: full test
run: >-
./mvnw ${MAVEN_ARGS}
${{ matrix.groovy-version != '' && -DgroovyVersion=matrix.groovy-version }}
${{ startsWith( matrix.groovy-version , '3' ) && '-DgroovyGroupId=org.codehaus.groovy' }}
clean install invoker:install invoker:run