mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-28 04:07:01 -05:00
Remove special casing of Java 21 test
This commit is contained in:
50
.github/workflows/test-push.yml
vendored
50
.github/workflows/test-push.yml
vendored
@@ -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/
|
||||
@@ -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('/', '.')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user