-
Notifications
You must be signed in to change notification settings - Fork 613
300 lines (261 loc) · 9.36 KB
/
pull-request.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Pull Request
on: [push, pull_request]
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
key: maven-test-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
restore-keys: |
maven-test-
maven-
- run: mvn --non-recursive wrapper:wrapper -Dmaven=3.9.6
- name: Set up Java 11
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
- run: ./mvnw --threads 2C --color=always verify
env:
MAVEN_OPTS: '-Xmx1g'
- name: 'Clean Maven cache'
run: rm -rf ~/.m2/repository/org/eclipse/collections
enforcer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
key: maven-enforcer-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
restore-keys: |
maven-enforcer-
maven-
- run: mvn --non-recursive wrapper:wrapper -Dmaven=3.9.6
- name: Set up Java 11
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
- name: Run maven-enforcer-plugin
run: ./mvnw --threads 2C --color=always verify --activate-profiles maven-enforcer-plugin -DskipTests
env:
MAVEN_OPTS: '-Xmx1g'
- name: 'Clean Maven cache'
run: rm -rf ~/.m2/repository/org/eclipse/collections
dependency:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
key: maven-dependency-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
restore-keys: |
maven-dependency-
maven-
- run: mvn --non-recursive wrapper:wrapper -Dmaven=3.9.6
- name: Set up Java 11
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
- name: Run maven-dependency-plugin
run: ./mvnw --threads 2C --color=always verify --activate-profiles maven-dependency-plugin -DskipTests
env:
MAVEN_OPTS: '-Xmx1g'
- name: 'Clean Maven cache'
run: rm -rf ~/.m2/repository/org/eclipse/collections
unit-tests-no-p2:
name: Unit Tests ${{ matrix.java-version }}
strategy:
matrix:
java-version: [17, 21, 22]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
key: maven-test-no-p2-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
restore-keys: |
maven-test-no-p2-
maven-test-
maven-
- run: mvn --non-recursive wrapper:wrapper -Dmaven=3.9.6
- name: Set up Java ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
- name: Unit-Test
run: ./mvnw --color=always verify
env:
MAVEN_OPTS: '-Xmx1g'
- name: 'Clean Maven cache'
run: rm -rf ~/.m2/repository/org/eclipse/collections
unit-tests-early-access:
name: Unit Test Early Access
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
key: maven-test-early-access-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
restore-keys: |
maven-test-early-access-
maven-test-
maven-
- name: Download JDK 23 from jdk.java.net
uses: oracle-actions/setup-java@v1
id: download-jdk
with:
website: jdk.java.net
release: 23
- name: 'Print outputs'
shell: bash
run: |
echo 'Outputs'
echo "steps.download-jdk.outputs.archive = ${{ steps.download-jdk.outputs.archive }}"
echo "steps.download-jdk.outputs.version = ${{ steps.download-jdk.outputs.version }}"
- run: mvn --non-recursive wrapper:wrapper -Dmaven=3.9.6
- run: java --version
- name: Unit-Test
run: ./mvnw --color=always verify
env:
MAVEN_OPTS: '-Xmx2g'
acceptance-tests:
name: Acceptance Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
key: maven-acceptance-test-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
restore-keys: |
maven-acceptance-test-
maven-test-
maven-
- run: mvn --non-recursive wrapper:wrapper -Dmaven=3.9.6
- name: Set up Java 11
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
- run: ./mvnw --color=always install --projects acceptance-tests --also-make --activate-profiles all
env:
MAVEN_OPTS: '-Xmx1g'
- name: 'Clean Maven cache'
run: rm -rf ~/.m2/repository/org/eclipse/collections
performance-tests:
name: Performance Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
key: maven-performance-test-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
restore-keys: |
maven-performance-test-
maven-test-
maven-
- run: mvn --non-recursive wrapper:wrapper -Dmaven=3.9.6
- name: Set up Java 11
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
- run: ./mvnw --color=always install --projects performance-tests --also-make --activate-profiles all -DskipTests=true
env:
MAVEN_OPTS: '-Xmx1g'
- name: 'Clean Maven cache'
run: rm -rf ~/.m2/repository/org/eclipse/collections
checkstyle:
name: Checkstyle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: mvn --non-recursive wrapper:wrapper -Dmaven=3.9.6
- name: Set up Java 11
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
- name: Checkstyle
run: ./mvnw --color=always install checkstyle:check --activate-profiles all -DskipTests=true
env:
MAVEN_OPTS: '-Xmx1g'
javadoc:
name: Javadoc 11
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
key: maven-javadoc-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
restore-keys: |
maven-javadoc-
maven-
- run: mvn --non-recursive wrapper:wrapper -Dmaven=3.9.6
- name: Set up Java 11
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
- name: Build Generator
run: ./mvnw --color=always -Dsurefire.useFile=false -DskipTests -Denforcer.skip=true clean install --projects 'eclipse-collections-code-generator,eclipse-collections-code-generator-maven-plugin'
- name: JavaDoc Aggregate
run: ./mvnw --color=always --activate-profiles maven-javadoc-plugin -DskipTests -Denforcer.skip=true clean javadoc:aggregate install --projects '!unit-tests,!serialization-tests,!jcstress-tests,!unit-tests-java8,!test-coverage'
env:
MAVEN_OPTS: '-Xmx1g'
- name: JavaDoc Jar
run: ./mvnw --color=always --activate-profiles maven-javadoc-plugin -DskipTests -Denforcer.skip=true clean install javadoc:jar --projects '!unit-tests,!serialization-tests,!jcstress-tests,!unit-tests-java8,!test-coverage'
env:
MAVEN_OPTS: '-Xmx1g'
- name: 'Clean Maven cache'
run: rm -rf ~/.m2/repository/org/eclipse/collections
javadoc-early-access:
name: Javadoc Early Access
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
key: maven-javadoc-ea-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
restore-keys: |
maven-javadoc-ea-
maven-javadoc-
maven-
- run: mvn --non-recursive wrapper:wrapper -Dmaven=3.9.6
- name: Download JDK 23 from jdk.java.net
uses: oracle-actions/setup-java@v1
id: download-jdk
with:
website: jdk.java.net
release: 23
- name: 'Print outputs'
shell: bash
run: |
echo 'Outputs'
echo "steps.download-jdk.outputs.archive = ${{ steps.download-jdk.outputs.archive }}"
echo "steps.download-jdk.outputs.version = ${{ steps.download-jdk.outputs.version }}"
- run: java --version
- name: Build Generator
run: ./mvnw --threads 2C --color=always -DskipTests install --projects 'eclipse-collections-code-generator,eclipse-collections-code-generator-maven-plugin'
- name: Javadoc
run: ./mvnw --threads 2C --color=always --activate-profiles maven-javadoc-plugin -DskipTests javadoc:aggregate install --projects '!unit-tests,!serialization-tests,!jcstress-tests,!unit-tests-java8,!test-coverage'
env:
MAVEN_OPTS: '-Xmx2g'
- name: 'Clean Maven cache'
run: rm -rf ~/.m2/repository/org/eclipse/collections