diff options
author | aSemy <897017+aSemy@users.noreply.github.com> | 2023-03-16 20:18:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-16 20:18:16 +0100 |
commit | 18d01bf269a88c0fba0ae860a1fda644d31a37c2 (patch) | |
tree | 013fb2bf6d7f4a77d4a7f4ff91a762ffb0bfe0a2 /.github | |
parent | 12e2a3c6b8bf1533148ddf29c77e73f5045754a6 (diff) | |
download | dokka-18d01bf269a88c0fba0ae860a1fda644d31a37c2.tar.gz dokka-18d01bf269a88c0fba0ae860a1fda644d31a37c2.tar.bz2 dokka-18d01bf269a88c0fba0ae860a1fda644d31a37c2.zip |
Fix test runtime Java versions (#2918)
Fixes #2917
Co-authored-by: Goooler <wangzongler@gmail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/gradle-test.pr.yml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/.github/workflows/gradle-test.pr.yml b/.github/workflows/gradle-test.pr.yml index 627304b8..743182bb 100644 --- a/.github/workflows/gradle-test.pr.yml +++ b/.github/workflows/gradle-test.pr.yml @@ -10,23 +10,25 @@ jobs: test-ubuntu: strategy: matrix: - version: [ 8, 11, 17 ] + javaVersion: [ 8, 11, 17 ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: distribution: 'zulu' - java-version: ${{ matrix.version }} + java-version: ${{ matrix.javaVersion }} cache: 'maven' - uses: gradle/gradle-build-action@v2 + env: + ORG_GRADLE_PROJECT_org.jetbrains.dokka.javaToolchain.test: ${{ matrix.javaVersion }} with: arguments: clean test --stacktrace test-windows: strategy: matrix: - version: [ 11, 17 ] + javaVersion: [ 11, 17 ] fail-fast: false runs-on: windows-latest steps: @@ -34,8 +36,10 @@ jobs: - uses: actions/setup-java@v3 with: distribution: 'zulu' - java-version: ${{ matrix.version }} + java-version: ${{ matrix.javaVersion }} cache: 'maven' - uses: gradle/gradle-build-action@v2 + env: + ORG_GRADLE_PROJECT_org.jetbrains.dokka.javaToolchain.test: ${{ matrix.javaVersion }} with: arguments: clean test --stacktrace --no-daemon --parallel --max-workers=1 |