diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2023-07-12 14:59:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-12 14:59:51 +0200 |
commit | 54decbe937ddcb0e3a8922babdc5f1d805fd42c0 (patch) | |
tree | 9980f4466c3b757c0b923fcff43157daa9ff5f16 /.github/workflows/tests-smoke.yml | |
parent | 14cd0f3e42e13927f9852d2cb74cc0098c1a429c (diff) | |
download | dokka-54decbe937ddcb0e3a8922babdc5f1d805fd42c0.tar.gz dokka-54decbe937ddcb0e3a8922babdc5f1d805fd42c0.tar.bz2 dokka-54decbe937ddcb0e3a8922babdc5f1d805fd42c0.zip |
Set the correct testLauncher property in workflows (#3064)
Diffstat (limited to '.github/workflows/tests-smoke.yml')
-rw-r--r-- | .github/workflows/tests-smoke.yml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/.github/workflows/tests-smoke.yml b/.github/workflows/tests-smoke.yml index 1177c111..7d41412c 100644 --- a/.github/workflows/tests-smoke.yml +++ b/.github/workflows/tests-smoke.yml @@ -6,6 +6,9 @@ concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' cancel-in-progress: true +env: + JAVA_TEST_VERSION: 11 + jobs: test-matrix: strategy: @@ -21,15 +24,18 @@ jobs: java-version: 17 cache: 'maven' - uses: gradle/gradle-build-action@v2 - env: - ORG_GRADLE_PROJECT_org.jetbrains.dokka.javaToolchain.test: 11 with: gradle-home-cache-cleanup: true - name: Run tests under Windows if: matrix.os == 'windows-latest' # Running tests with the Gradle daemon on windows agents leads to some very strange # JVM crashes for some reason. Most likely a problem of Gradle/GitHub/Windows server - run: ./gradlew clean test --stacktrace --no-daemon --no-parallel "-Dorg.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=500m" + run: > + ./gradlew clean test --stacktrace --no-daemon --no-parallel + "-Dorg.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=500m" + "-Porg.jetbrains.dokka.javaToolchain.testLauncher=${{ env.JAVA_TEST_VERSION }}" - name: Run tests under Ubuntu if: matrix.os != 'windows-latest' - run: ./gradlew clean test --stacktrace + run: > + ./gradlew clean test --stacktrace + "-Porg.jetbrains.dokka.javaToolchain.testLauncher=${{ env.JAVA_TEST_VERSION }}" |