-
Notifications
You must be signed in to change notification settings - Fork 0
149 lines (140 loc) · 3.67 KB
/
java.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
name: Java
on:
push:
paths:
- 'java/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
fail-fast: false
matrix:
version:
- 8
- 11
- 13
- 15
- 16
- 17
- 18
- 19
- 20
- 21
distribution:
- corretto
- dragonwell
- liberica
- semeru
- temurin
- zulu
os:
- 'macos-latest'
- 'ubuntu-latest'
exclude:
- distribution: dragonwell
os: macos-latest
- distribution: semeru
os: macos-latest
- version: 8
distribution: semeru
os: ubuntu-latest
- version: 8
distribution: temurin
os: macos-latest
- version: 11
distribution: semeru
- version: 13
distribution: temurin
- version: 13
distribution: liberica
os: macos-latest
- version: 13
distribution: dragonwell
- version: 13
distribution: corretto
- version: 13
distribution: semeru
- version: 15
distribution: temurin
- version: 15
distribution: corretto
os: macos-latest
- version: 15
distribution: dragonwell
- version: 15
distribution: semeru
- version: 16
distribution: temurin
os: macos-latest
- version: 16
distribution: corretto
os: macos-latest
- version: 16
distribution: dragonwell
- version: 18
distribution: dragonwell
- version: 19
distribution: dragonwell
- version: 20
distribution: dragonwell
include:
- version: 9
distribution: zulu
os: ubuntu-latest
- version: 23
distribution: corretto
os: ubuntu-latest
- version: 22
distribution: corretto
os: ubuntu-latest
- version: 21
distribution: microsoft
os: ubuntu-latest
- version: 17
distribution: microsoft
os: ubuntu-latest
- version: 16
distribution: microsoft
os: ubuntu-latest
- version: 11
distribution: microsoft
os: ubuntu-latest
- version: 21
distribution: oracle
os: ubuntu-latest
- version: 20
distribution: oracle
os: ubuntu-latest
- version: 19
distribution: oracle
os: ubuntu-latest
- version: 18
distribution: oracle
os: ubuntu-latest
- version: 17
distribution: oracle
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.version }}
distribution: ${{ matrix.distribution }}
cache: maven
cache-dependency-path: "java/pom.xml"
- name: Run tests (serially)
if: ${{ matrix.version == 21 && matrix.os == 'ubuntu-latest' }}
run: make ja_test
- name: Run tests (in parallel)
if: ${{ matrix.version != 21 || matrix.os != 'ubuntu-latest' }}
run: make ja_test_auto IS_TARGET=false
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: Java