Skip to content

Commit c2d2c30

Browse files
wenytang-msCopilot
andcommitted
fix: add JDK 25 setup for java25 e2e test plans
The java-gradle-java25 and java-maven-java25 test plans require JDK 25 at 'C:\Program Files\Java\jdk-25', but the pipeline only installed JDK 21. This caused the Language Server to fail to start, timing out on the ls-ready step. - Install JDK 25 via setup-java before JDK 21 - Create a directory junction at the expected path - JDK 21 remains the default JAVA_HOME Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1cd32ef commit c2d2c30

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/e2e-autotest.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,18 @@ jobs:
3737
with:
3838
node-version: 20
3939

40-
- name: Setup Java
40+
- name: Setup Java 25 (for java25 test plans)
41+
uses: actions/setup-java@v4
42+
with:
43+
distribution: temurin
44+
java-version: 25
45+
46+
- name: Create JDK 25 path for test plans
47+
shell: pwsh
48+
run: |
49+
New-Item -ItemType Junction -Path "C:\Program Files\Java\jdk-25" -Target $env:JAVA_HOME
50+
51+
- name: Setup Java 21
4152
uses: actions/setup-java@v4
4253
with:
4354
distribution: temurin

0 commit comments

Comments
 (0)