Skip to content

Commit f08bb1d

Browse files
committed
Merge branch 'release/2021.2.0'
2 parents 25b17cf + 30fa66c commit f08bb1d

File tree

1,036 files changed

+140477
-71746
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,036 files changed

+140477
-71746
lines changed

.github/workflows/ci.yaml

+57-33
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
steps:
2525
# Using v1 (rather than v2) through-out this workflow due to issue:
2626
# https://github.com/actions/checkout/issues/237
27-
- uses: actions/checkout@v1
27+
- uses: actions/checkout@v2
2828

2929
- name: NPM Cache
3030
uses: actions/cache@v2
@@ -66,7 +66,7 @@ jobs:
6666
java-version: 8
6767

6868
- name: Install node dependencies (core)
69-
working-directory: Source/Plugins/Core/com.equella.core/js
69+
working-directory: react-front-end
7070
run: |
7171
npm ci
7272
@@ -84,12 +84,25 @@ jobs:
8484
npm run check
8585
./sbt headerCheck checkJavaCodeStyle
8686
87+
# oeq-ts-rest-api has its own ESLint checks seeing the ultimate plan
88+
# is that it's moved to its own stand-alone repo. But so here we need
89+
# to explicitly run them.
90+
- name: Run checks (oeq-ts-rest-api)
91+
working-directory: oeq-ts-rest-api
92+
run: |
93+
npm run lint
94+
8795
- name: Run unit tests (java/scala)
8896
run: |
8997
./sbt test
9098
9199
- name: Run unit tests (javascript)
92-
working-directory: Source/Plugins/Core/com.equella.core/js
100+
working-directory: react-front-end
101+
run: |
102+
npm cit
103+
104+
- name: Run unit tests (javascript - legacy)
105+
working-directory: Source/Plugins/Core/com.equella.core/test/javascript
93106
run: |
94107
npm cit
95108
@@ -106,7 +119,7 @@ jobs:
106119
target/*.zip
107120
108121
- name: Save primary artefacts
109-
uses: actions/[email protected].3
122+
uses: actions/[email protected].4
110123
with:
111124
name: Artefacts
112125
path: artefacts.tar
@@ -116,7 +129,7 @@ jobs:
116129
steps:
117130
# Using v1 (rather than v2) through-out this workflow due to issue:
118131
# https://github.com/actions/checkout/issues/237
119-
- uses: actions/checkout@v1
132+
- uses: actions/checkout@v2
120133

121134
- name: NPM Cache
122135
uses: actions/cache@v2
@@ -136,30 +149,30 @@ jobs:
136149
node-version: "${{ steps.nvm.outputs.NVMRC }}"
137150

138151
- name: Install node dependencies (core)
139-
working-directory: Source/Plugins/Core/com.equella.core/js
152+
working-directory: react-front-end
140153
run: |
141154
npm ci
142155
143156
- name: Generate Static Storybook instance
144-
working-directory: Source/Plugins/Core/com.equella.core/js
157+
working-directory: react-front-end
145158
run: |
146159
npm run build-storybook
147160
148161
- name: Package Static Storybook instance
149-
working-directory: Source/Plugins/Core/com.equella.core/js
162+
working-directory: react-front-end
150163
run: |
151164
tar cvf storybook.tar storybook-static
152165
153166
- name: Save Static Storybook instance
154-
uses: actions/[email protected].3
167+
uses: actions/[email protected].4
155168
with:
156169
name: Storybook
157-
path: Source/Plugins/Core/com.equella.core/js/storybook.tar
170+
path: react-front-end/storybook.tar
158171

159172
build_import_export_tool:
160173
runs-on: ubuntu-latest
161174
steps:
162-
- uses: actions/checkout@v1
175+
- uses: actions/checkout@v2
163176

164177
- name: Set up JDK 1.8
165178
uses: actions/setup-java@v2
@@ -173,15 +186,15 @@ jobs:
173186
./gradlew build
174187
175188
- name: Save primary artefacts
176-
uses: actions/[email protected].3
189+
uses: actions/[email protected].4
177190
with:
178191
name: ImportExportTools
179192
path: import-export-tool/build/libs/
180193

181194
functional_testing:
182195
needs: build_and_check
183196

184-
runs-on: ubuntu-latest
197+
runs-on: ubuntu-18.04
185198

186199
strategy:
187200
matrix:
@@ -231,11 +244,21 @@ jobs:
231244
distribution: adopt
232245
java-version: 8
233246

234-
- uses: actions/checkout@v1
247+
- name: Read .nvmrc
248+
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
249+
id: nvm
250+
251+
- name: Setup node
252+
uses: actions/setup-node@v2
253+
with:
254+
node-version: "${{ steps.nvm.outputs.NVMRC }}"
235255

236-
- name: Download installer
237-
uses: actions/download-artifact@v1
256+
- uses: actions/checkout@v2
257+
258+
- name: Download Artefacts
259+
uses: actions/download-artifact@v2
238260
with:
261+
path: Artefacts
239262
name: Artefacts
240263

241264
- name: Extract installer from build
@@ -261,7 +284,7 @@ jobs:
261284
262285
- name: Save Scalacheck results
263286
if: matrix.newui && failure()
264-
uses: actions/[email protected].3
287+
uses: actions/[email protected].4
265288
with:
266289
name: ScalacheckReports
267290
path: autotest/Tests/target/test-reports
@@ -273,21 +296,21 @@ jobs:
273296
274297
- name: Save TestNG Reports
275298
if: failure()
276-
uses: actions/[email protected].3
299+
uses: actions/[email protected].4
277300
with:
278301
name: TestNGReports-new-${{ matrix.newui }}
279302
path: autotest/OldTests/target/testng
280303

281304
- name: Save oEQ Logs
282305
if: failure()
283-
uses: actions/[email protected].3
306+
uses: actions/[email protected].4
284307
with:
285308
name: oEQLogs-new-${{ matrix.newui }}
286309
path: autotest/equella-install/logs
287310

288311
- name: Save Screenshots
289312
if: failure()
290-
uses: actions/[email protected].3
313+
uses: actions/[email protected].4
291314
with:
292315
name: Screenshots-new-${{ matrix.newui }}
293316
path: autotest/Tests/target/test-reports/screenshots
@@ -305,7 +328,7 @@ jobs:
305328
tar cvf coverage_report.tar autotest/target/coverage-report/
306329
307330
- name: Save Coverage Report
308-
uses: actions/[email protected].3
331+
uses: actions/[email protected].4
309332
with:
310333
name: CoverageReport-newui-${{ matrix.newui }}
311334
path: coverage_report.tar
@@ -335,7 +358,7 @@ jobs:
335358
AUTOTEST_CONFIG: autotest/github-actions.conf
336359

337360
steps:
338-
- uses: actions/checkout@v1
361+
- uses: actions/checkout@v2
339362

340363
- name: Install OS dependencies
341364
run: |
@@ -354,9 +377,19 @@ jobs:
354377
distribution: adopt
355378
java-version: 8
356379

380+
- name: Read .nvmrc
381+
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
382+
id: nvm
383+
384+
- name: Setup node
385+
uses: actions/setup-node@v2
386+
with:
387+
node-version: "${{ steps.nvm.outputs.NVMRC }}"
388+
357389
- name: Download installer
358-
uses: actions/download-artifact@v1
390+
uses: actions/download-artifact@v2
359391
with:
392+
path: Artefacts
360393
name: Artefacts
361394

362395
- name: Extract installer from build
@@ -373,15 +406,6 @@ jobs:
373406
./sbt -jvm-opts autotest/.jvmopts "project autotest" \
374407
installEquella startEquella configureInstall setupForTests
375408
376-
- name: Read .nvmrc
377-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
378-
id: nvm
379-
380-
- name: Setup node
381-
uses: actions/setup-node@v2
382-
with:
383-
node-version: "${{ steps.nvm.outputs.NVMRC }}"
384-
385409
- name: Run tests
386410
working-directory: oeq-ts-rest-api
387411
run: |
@@ -395,7 +419,7 @@ jobs:
395419
396420
- name: Save oEQ logs for REST Module
397421
if: failure()
398-
uses: actions/[email protected].3
422+
uses: actions/[email protected].4
399423
with:
400424
name: oEQ-logs-rest-module
401425
path: autotest/equella-install/logs

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14.16.1
1+
16.13.1

.sbtopts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
-mem 4096
2-
1+
-J-Xmx4G

0 commit comments

Comments
 (0)