Skip to content

Commit

Permalink
OD-17991 Fixed test build issues due upgrade Gradle to version 8.12
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyrisXdSnow committed Jan 2, 2025
1 parent a7dfca3 commit 8361c10
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/selenuim-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: ankane/setup-mariadb@v1
with:
mariadb-version: "10.11"
database: angel_selenuim_test
database: angel_selenium_test

- uses: actions/checkout@v2

Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:

- name: Run tests
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
run: ./gradlew selenium-test:test -x client-html:test -PdbUrl=jdbc:mariadb://localhost:3306/angel_selenuim_test?user=root --stacktrace
run: ./gradlew selenium-test:test -x client-html:test -PdbUrl=jdbc:mariadb://localhost:3306/angel_selenium_test?user=root --stacktrace

- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v1
Expand Down
7 changes: 2 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,8 @@ subprojects {
'Trusted-Library': 'true'
}

ext {
testFailed = false
}

test {
boolean testFailed = false
useJUnitPlatform()

systemProperties 'java.awt.headless': 'true', 'java.locale.providers': 'COMPAT,SPI'
Expand All @@ -158,7 +155,7 @@ subprojects {
}
}
doLast {
if (ext.testFailed) {
if (testFailed) {
throw new Exception("tests failed, exit code == 1")
}
}
Expand Down
2 changes: 1 addition & 1 deletion nodeSetup.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ apply plugin: 'com.github.node-gradle.node'
node {
version = '20.16.0'
download = System.properties['os.name'] != "FreeBSD" // FreeBSD has no binaries this plugin can install
workDir = file("${project.layout.buildDirectory.get()}/nodejs")
workDir = file("${layout.buildDirectory.get()}/nodejs")
npmInstallCommand = System.getenv("CI") ? 'ci' : 'install'
}

Expand Down
3 changes: 3 additions & 0 deletions selenium-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,7 @@ test {
dependsOn "copyConfig"
dependsOn ":server:startDaemon"
dependsOn "prepareTestDatabase"

// ensure tests are always run
outputs.upToDateWhen { false }
}
1 change: 1 addition & 0 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ distZip.dependsOn(copyWebApp, addVersion)
distZip.finalizedBy(createChecksums)

compileGroovy.mustRunAfter(":api-test:copyConfig")
compileGroovy.mustRunAfter(":selenium-test:copyConfig")
compileTestGroovy.dependsOn(copyWebApp)

compileJava {
Expand Down

0 comments on commit 8361c10

Please sign in to comment.