test: cover JDK 26 from SDKMAN (#1238)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Bruno Borges
2026-08-17 17:05:27 -04:00
committed by GitHub
co-authored by Copilot App
parent d4f69b3990
commit fb4abd7a70
2 changed files with 21 additions and 0 deletions
+20
View File
@@ -636,6 +636,26 @@ jobs:
run: bash __tests__/verify-java.sh "17.0.10" "$JAVA_PATH"
shell: bash
setup-java-version-from-sdkman-major:
name: temurin 26 from .sdkmanrc - ubuntu-latest
runs-on: ubuntu-latest
steps:
- *checkout_step
- name: Create SDKMAN and Gradle files
run: |
echo "java=26-tem" > .sdkmanrc
touch build.gradle
- name: setup-java
uses: ./
id: setup-java
with:
java-version-file: .sdkmanrc
cache: gradle
- name: Verify Java
env:
JAVA_PATH: ${{ steps.setup-java.outputs.path }}
run: bash __tests__/verify-java.sh "26" "$JAVA_PATH"
setup-java-set-default:
name: set-default option - ${{ matrix.os }}
needs: setup-java-major-versions
+1
View File
@@ -263,6 +263,7 @@ describe('validatePaginationUrl', () => {
describe('getVersionFromFileContent', () => {
describe('.sdkmanrc', () => {
it.each([
['java=26-tem', '26', 'temurin'],
['java=11.0.20.1-tem', '11.0.20', 'temurin'],
['java = 11.0.20.1-tem', '11.0.20', 'temurin'],
['java=11.0.20.1-tem # a comment in sdkmanrc', '11.0.20', 'temurin'],