Skip to content

Commit fb4abd7

Browse files
brunoborgesCopilot
andauthored
test: cover JDK 26 from SDKMAN (#1238)
Co-authored-by: Copilot App <[email protected]>
1 parent d4f69b3 commit fb4abd7

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

‎.github/workflows/e2e-versions.yml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,26 @@ jobs:
636636
run: bash __tests__/verify-java.sh "17.0.10" "$JAVA_PATH"
637637
shell: bash
638638

639+
setup-java-version-from-sdkman-major:
640+
name: temurin 26 from .sdkmanrc - ubuntu-latest
641+
runs-on: ubuntu-latest
642+
steps:
643+
- *checkout_step
644+
- name: Create SDKMAN and Gradle files
645+
run: |
646+
echo "java=26-tem" > .sdkmanrc
647+
touch build.gradle
648+
- name: setup-java
649+
uses: ./
650+
id: setup-java
651+
with:
652+
java-version-file: .sdkmanrc
653+
cache: gradle
654+
- name: Verify Java
655+
env:
656+
JAVA_PATH: ${{ steps.setup-java.outputs.path }}
657+
run: bash __tests__/verify-java.sh "26" "$JAVA_PATH"
658+
639659
setup-java-set-default:
640660
name: set-default option - ${{ matrix.os }}
641661
needs: setup-java-major-versions

‎__tests__/util.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ describe('validatePaginationUrl', () => {
263263
describe('getVersionFromFileContent', () => {
264264
describe('.sdkmanrc', () => {
265265
it.each([
266+
['java=26-tem', '26', 'temurin'],
266267
['java=11.0.20.1-tem', '11.0.20', 'temurin'],
267268
['java = 11.0.20.1-tem', '11.0.20', 'temurin'],
268269
['java=11.0.20.1-tem # a comment in sdkmanrc', '11.0.20', 'temurin'],

0 commit comments

Comments
 (0)