Skip to content

Commit

Permalink
Merge remote-tracking branch 'github/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
edalex-ian committed Feb 13, 2024
2 parents 7d5e609 + 8272e02 commit d41e22f
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 60 deletions.
62 changes: 18 additions & 44 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ jobs:
with:
node-version-file: '.nvmrc'

- name: Set up JDK 11
uses: actions/setup-java@v3
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 11
distribution: temurin
java-version: 21

- name: Install node dependencies (oeq-rest-api)
working-directory: oeq-ts-rest-api
Expand Down Expand Up @@ -179,28 +179,6 @@ jobs:
name: Storybook
path: react-front-end/storybook.tar

build_import_export_tool:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 11

- name: Build
working-directory: import-export-tool
run: |
./gradlew build
- name: Save primary artefacts
uses: actions/[email protected]
with:
name: ImportExportTools
path: import-export-tool/build/libs/

functional_testing:
needs: build_and_check

Expand Down Expand Up @@ -244,11 +222,11 @@ jobs:
ffmpeg \
libimage-exiftool-perl
- name: Set up JDK 11
uses: actions/setup-java@v3
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 11
distribution: temurin
java-version: 21

- uses: actions/checkout@v4

Expand All @@ -274,15 +252,14 @@ jobs:
- name: Setup for tests
run: |
./sbt -jvm-opts autotest/.jvmopts "project autotest" \
./sbt "project autotest" \
installEquella startEquella configureInstall setupForTests
- name: Run Scalacheck tests
# We only need to run these once, so we focus on the New UI
if: matrix.newui
run: |
./sbt -jvm-opts autotest/.jvmopts "project autotest" \
Tests/test Tests/Serial/test dumpCoverage
./sbt "project autotest" Tests/test Tests/Serial/test dumpCoverage
- name: Save Scalacheck results
if: matrix.newui && failure()
Expand All @@ -293,8 +270,7 @@ jobs:

- name: Run TestNG tests
run: |
./sbt -jvm-opts autotest/.jvmopts "project autotest" \
OldTests/test dumpCoverage
./sbt "project autotest" OldTests/test dumpCoverage
- name: Save TestNG Reports
if: failure()
Expand All @@ -319,8 +295,7 @@ jobs:

- name: Generate coverage report
run: |
./sbt -jvm-opts autotest/.jvmopts "project autotest" \
coverageReport
./sbt "project autotest" coverageReport
# To save significant time on file upload, we first tar up the directory
# as it contains > 10k files and the artefact upload was taking almost
Expand Down Expand Up @@ -369,11 +344,11 @@ jobs:
ffmpeg \
libimage-exiftool-perl
- name: Set up JDK 11
uses: actions/setup-java@v3
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 11
distribution: temurin
java-version: 21

- name: Setup node
uses: actions/setup-node@v3
Expand All @@ -397,7 +372,7 @@ jobs:
- name: Install openEquella
run: |
./sbt -jvm-opts autotest/.jvmopts "project autotest" \
./sbt "project autotest" \
installEquella startEquella configureInstall setupForTests
- name: Run tests
Expand All @@ -408,8 +383,7 @@ jobs:
- name: Stop oEQ
if: failure()
run: |
./sbt -jvm-opts autotest/.jvmopts "project autotest" \
stopEquella
./sbt "project autotest" stopEquella
- name: Save oEQ logs for REST Module
if: failure()
Expand Down
4 changes: 2 additions & 2 deletions autotest/.jvmopts → .jvmopts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-Xms2048m
-Xmx2048m
-Xms2g
-Xmx4g
-XX:ReservedCodeCacheSize=256m
-XX:MaxMetaspaceSize=512m
1 change: 0 additions & 1 deletion .sbtopts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void selectUser(String username) {
WebElement targetUser =
waiter.until(
ExpectedConditions.elementToBeClickable(
dialog.findElement(By.xpath(".//span[text()='" + username + "']"))));
By.xpath("//div[@role='dialog']//span[text()='" + username + "']")));
targetUser.click();

// Confirm the selection.
Expand Down
14 changes: 7 additions & 7 deletions react-front-end/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion react-front-end/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"@storybook/react": "7.4.5",
"@storybook/react-webpack5": "7.4.5",
"@testing-library/jest-dom": "6.1.5",
"@testing-library/react": "14.1.0",
"@testing-library/react": "14.2.1",
"@testing-library/user-event": "14.5.1",
"@types/css-mediaquery": "0.1.3",
"@types/jest": "29.5.7",
Expand Down
8 changes: 4 additions & 4 deletions sbt
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@

set -o pipefail

declare -r sbt_release_version="1.5.6"
declare -r sbt_unreleased_version="1.6.0-M1"
declare -r sbt_release_version="1.9.7"
declare -r sbt_unreleased_version="1.9.7"

declare -r latest_213="2.13.7"
declare -r latest_212="2.12.15"
declare -r latest_213="2.13.12"
declare -r latest_212="2.12.18"
declare -r latest_211="2.11.12"
declare -r latest_210="2.10.7"
declare -r latest_29="2.9.3"
Expand Down

0 comments on commit d41e22f

Please sign in to comment.