Run tests against Java 17 (#515)

* Run tests against Java 17

* Fix tests on J17
This commit is contained in:
modmuss50 2021-10-09 11:05:38 +01:00 committed by GitHub
parent e55763aca2
commit 5315d3c5b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -5,12 +5,10 @@ jobs:
strategy:
fail-fast: false
matrix:
gradle: [7.0.1]
java: [jdk16]
jvm: [hotspot]
version: [7.0.0-jdk16, 7.2-jdk17]
runs-on: ubuntu-20.04
container:
image: gradle:${{ matrix.gradle }}-${{ matrix.java }}
image: gradle:${{ matrix.version }}
options: --user root
steps:
- uses: actions/checkout@v2
@ -43,12 +41,12 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [jdk16]
version: [7.0.0-jdk16, 7.2-jdk17]
test: ${{ fromJson(needs.prepare_test_matrix.outputs.matrix) }}
runs-on: ubuntu-20.04
container:
image: gradle:7.0.0-${{ matrix.java }}
image: gradle:${{ matrix.version }}
options: --user root
steps:

View file

@ -24,9 +24,11 @@
package net.fabricmc.loom.test
import org.gradle.util.GradleVersion
class LoomTestConstants {
public final static String DEFAULT_GRADLE = "7.0.1"
public final static String PRE_RELEASE_GRADLE = "7.4-20210929223033+0000"
public final static String DEFAULT_GRADLE = GradleVersion.current().getVersion()
public final static String PRE_RELEASE_GRADLE = "7.4-20211007220130+0000"
public final static String[] STANDARD_TEST_VERSIONS = [DEFAULT_GRADLE, PRE_RELEASE_GRADLE]
}