@@ -55,14 +55,15 @@ jobs:
55
55
id : nvm
56
56
57
57
- name : Setup node
58
- uses : actions/setup-node@v1
58
+ uses : actions/setup-node@v2
59
59
with :
60
60
node-version : " ${{ steps.nvm.outputs.NVMRC }}"
61
61
62
62
- name : Set up JDK 1.8
63
- uses : actions/setup-java@v1
63
+ uses : actions/setup-java@v2
64
64
with :
65
- java-version : 1.8
65
+ distribution : adopt
66
+ java-version : 8
66
67
67
68
- name : Install node dependencies (core)
68
69
working-directory : Source/Plugins/Core/com.equella.core/js
@@ -105,7 +106,7 @@ jobs:
105
106
target/*.zip
106
107
107
108
- name : Save primary artefacts
108
-
109
+
109
110
with :
110
111
name : Artefacts
111
112
path : artefacts.tar
@@ -130,7 +131,7 @@ jobs:
130
131
id : nvm
131
132
132
133
- name : Setup node
133
- uses : actions/setup-node@v1
134
+ uses : actions/setup-node@v2
134
135
with :
135
136
node-version : " ${{ steps.nvm.outputs.NVMRC }}"
136
137
@@ -150,7 +151,7 @@ jobs:
150
151
tar cvf storybook.tar storybook-static
151
152
152
153
- name : Save Static Storybook instance
153
-
154
+
154
155
with :
155
156
name : Storybook
156
157
path : Source/Plugins/Core/com.equella.core/js/storybook.tar
@@ -161,17 +162,18 @@ jobs:
161
162
- uses : actions/checkout@v1
162
163
163
164
- name : Set up JDK 1.8
164
- uses : actions/setup-java@v1
165
+ uses : actions/setup-java@v2
165
166
with :
166
- java-version : 1.8
167
+ distribution : adopt
168
+ java-version : 8
167
169
168
170
- name : Build
169
171
working-directory : import-export-tool
170
172
run : |
171
173
./gradlew build
172
174
173
175
- name : Save primary artefacts
174
-
176
+
175
177
with :
176
178
name : ImportExportTools
177
179
path : import-export-tool/build/libs/
@@ -184,11 +186,15 @@ jobs:
184
186
strategy :
185
187
matrix :
186
188
newui : [true, false]
189
+ pgsql-image : [latest, 9.6]
190
+ exclude :
191
+ - newui : false
192
+ pgsql-image : latest
187
193
fail-fast : false
188
194
189
195
services :
190
196
postgres :
191
- image : postgres:9.6
197
+ image : postgres:${{ matrix.pgsql-image }}
192
198
env :
193
199
POSTGRES_USER : equellatests
194
200
POSTGRES_PASSWORD : password
@@ -220,9 +226,10 @@ jobs:
220
226
sudo ln -s /usr/bin/ffprobe /usr/bin/avprobe
221
227
222
228
- name : Set up JDK 1.8
223
- uses : actions/setup-java@v1
229
+ uses : actions/setup-java@v2
224
230
with :
225
- java-version : 1.8
231
+ distribution : adopt
232
+ java-version : 8
226
233
227
234
- uses : actions/checkout@v1
228
235
@@ -254,7 +261,7 @@ jobs:
254
261
255
262
- name : Save Scalacheck results
256
263
if : matrix.newui && failure()
257
-
264
+
258
265
with :
259
266
name : ScalacheckReports
260
267
path : autotest/Tests/target/test-reports
@@ -266,21 +273,21 @@ jobs:
266
273
267
274
- name : Save TestNG Reports
268
275
if : failure()
269
-
276
+
270
277
with :
271
278
name : TestNGReports-new-${{ matrix.newui }}
272
279
path : autotest/OldTests/target/testng
273
280
274
281
- name : Save oEQ Logs
275
282
if : failure()
276
-
283
+
277
284
with :
278
285
name : oEQLogs-new-${{ matrix.newui }}
279
286
path : autotest/equella-install/logs
280
287
281
288
- name : Save Screenshots
282
289
if : failure()
283
-
290
+
284
291
with :
285
292
name : Screenshots-new-${{ matrix.newui }}
286
293
path : autotest/Tests/target/test-reports/screenshots
@@ -298,7 +305,7 @@ jobs:
298
305
tar cvf coverage_report.tar autotest/target/coverage-report/
299
306
300
307
- name : Save Coverage Report
301
-
308
+
302
309
with :
303
310
name : CoverageReport-newui-${{ matrix.newui }}
304
311
path : coverage_report.tar
@@ -310,7 +317,7 @@ jobs:
310
317
311
318
services :
312
319
postgres :
313
- image : postgres:9.6
320
+ image : postgres:latest
314
321
env :
315
322
POSTGRES_USER : equellatests
316
323
POSTGRES_PASSWORD : password
@@ -342,9 +349,10 @@ jobs:
342
349
sudo ln -s /usr/bin/ffprobe /usr/bin/avprobe
343
350
344
351
- name : Set up JDK 1.8
345
- uses : actions/setup-java@v1
352
+ uses : actions/setup-java@v2
346
353
with :
347
- java-version : 1.8
354
+ distribution : adopt
355
+ java-version : 8
348
356
349
357
- name : Download installer
350
358
uses : actions/download-artifact@v1
@@ -370,7 +378,7 @@ jobs:
370
378
id : nvm
371
379
372
380
- name : Setup node
373
- uses : actions/setup-node@v1
381
+ uses : actions/setup-node@v2
374
382
with :
375
383
node-version : " ${{ steps.nvm.outputs.NVMRC }}"
376
384
@@ -387,7 +395,7 @@ jobs:
387
395
388
396
- name : Save oEQ logs for REST Module
389
397
if : failure()
390
-
398
+
391
399
with :
392
400
name : oEQ-logs-rest-module
393
401
path : autotest/equella-install/logs
0 commit comments