Skip to content

Commit

Permalink
Update examples (#2153)
Browse files Browse the repository at this point in the history
  • Loading branch information
abendt committed May 7, 2024
1 parent d080f2a commit 351fa7f
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 20 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/examples-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ jobs:
- name: Install Fluentlenium
uses: ./.github/actions/fluentlenium-maven-install

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Run gradle kotest quickstart as it is
run: cd examples/kotest && ./gradlew check

Expand Down Expand Up @@ -93,6 +96,9 @@ jobs:
- name: Install Fluentlenium
uses: ./.github/actions/fluentlenium-maven-install

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Run gradle firefox quickstart as it is
run: cd examples/quickstart-firefox && ./gradlew check

Expand Down
10 changes: 5 additions & 5 deletions examples/kotest/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm") version "1.9.22"
kotlin("jvm") version "1.9.23"
id("com.adarshr.test-logger") version "4.0.0"
}

Expand Down Expand Up @@ -55,18 +55,18 @@ dependencies {
testImplementation("io.kotest:kotest-runner-junit5")
testImplementation("io.kotest:kotest-assertions-core")

testImplementation("io.github.bonigarcia:webdrivermanager:5.7.0")
testImplementation("io.github.bonigarcia:webdrivermanager:5.8.0")

val seleniumVersion = properties["selenium.version"] ?: "4.16.0"
testImplementation("org.seleniumhq.selenium:selenium-api:$seleniumVersion")
testImplementation("org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion")
testRuntimeOnly("org.seleniumhq.selenium:selenium-devtools-v120:$seleniumVersion")

testImplementation("io.kotest.extensions:kotest-extensions-testcontainers:2.0.2")
testImplementation("org.testcontainers:selenium:1.19.6")
testImplementation("org.testcontainers:selenium:1.19.7")

testImplementation("ch.qos.logback:logback-classic:1.5.1")
testRuntimeOnly("org.slf4j:jul-to-slf4j:2.0.12")
testImplementation("ch.qos.logback:logback-classic:1.5.6")
testRuntimeOnly("org.slf4j:jul-to-slf4j:2.0.13")
}

configurations.all {
Expand Down
2 changes: 1 addition & 1 deletion examples/kotest/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
20 changes: 10 additions & 10 deletions examples/kotest/gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand All @@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand Down
6 changes: 3 additions & 3 deletions examples/quickstart-firefox/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.9.22'
id 'org.jetbrains.kotlin.jvm' version '1.9.23'
}

repositories {
Expand All @@ -17,9 +17,9 @@ def fluentLeniumVersion = properties["fluentlenium.version"] ?: "6.0.0"
dependencies {
implementation "io.fluentlenium:fluentlenium-junit-jupiter:$fluentLeniumVersion"
implementation "io.fluentlenium:fluentlenium-assertj:$fluentLeniumVersion"
testImplementation 'ch.qos.logback:logback-classic:1.5.1'
testImplementation 'ch.qos.logback:logback-classic:1.5.6'
testImplementation 'org.seleniumhq.selenium:selenium-firefox-driver:4.16.0'
testImplementation 'io.github.bonigarcia:webdrivermanager:5.7.0'
testImplementation 'io.github.bonigarcia:webdrivermanager:5.8.0'

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit 351fa7f

Please sign in to comment.