Remove special casing of Java 21 test

This commit is contained in:
Juuz
2024-07-01 20:06:38 +03:00
parent 9e4a70f742
commit 4944d0f799
2 changed files with 0 additions and 55 deletions

View File

@@ -148,53 +148,3 @@ jobs:
with:
name: Reproducible Build ${{ matrix.os }} (${{ matrix.java }}) Results
path: build/reports/
# Special case this test to run on Java 21
neoForge1206Test:
needs: build
strategy:
fail-fast: false
matrix:
java: [ 21 ]
os: [ ubuntu-22.04 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- run: ./gradlew test --tests *NeoForge1206Test --stacktrace --warning-mode fail
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: NeoForge 1.20.6 Build Results
# Special case this test to run on Java 21
forge1206Test:
needs: build
strategy:
fail-fast: false
matrix:
java: [ 21 ]
os: [ ubuntu-22.04 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- run: ./gradlew test --tests *Forge1206Test --stacktrace --warning-mode fail
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: Forge 1.20.6 Build Results
path: build/reports/

View File

@@ -424,11 +424,6 @@ tasks.register('writeActionsTestMatrix') {
return
}
if (it.name.endsWith("NeoForge1206Test.groovy") || it.name.endsWith("Forge1206Test.groovy")) {
// Arch: The 1.20.6 tests require Java 21
return
}
def className = it.path.toString().replace(".groovy", "")
className = className.substring(className.lastIndexOf("integration/") + "integration/".length()).replace('/', '.')