Skip to content

Commit d2d4fad

Browse files
wenytang-msCopilot
andcommitted
refactor: simplify E2E workflow to clone javaext-autotest directly
Instead of installing @vscjava/vscode-autotest globally and maintaining duplicate test plans in this repo, the workflow now: - Clones wenytang-ms/javaext-autotest as a sibling directory - Runs npm ci && npm run build to set up the framework - Executes test plans directly from javaext-autotest/test-plans/ This keeps test plans in a single source of truth (javaext-autotest) and avoids version drift between the npm package and latest changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d08b231 commit d2d4fad

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/e2e-autotest.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ jobs:
1515
timeout-minutes: 60
1616

1717
steps:
18-
- name: Checkout vscode-java-pack
18+
- name: Checkout javaext-autotest
1919
uses: actions/checkout@v4
2020
with:
21-
path: vscode-java-pack
21+
repository: wenytang-ms/javaext-autotest
22+
path: javaext-autotest
2223

2324
- name: Checkout vscode-java (test projects)
2425
uses: actions/checkout@v4
@@ -41,7 +42,7 @@ jobs:
4142
uses: actions/setup-java@v4
4243
with:
4344
distribution: temurin
44-
java-version: 25
45+
java-version: 25-ea
4546

4647
- name: Create JDK 25 path for test plans
4748
shell: pwsh
@@ -54,17 +55,18 @@ jobs:
5455
distribution: temurin
5556
java-version: 21
5657

57-
- name: Install autotest CLI
58-
run: npm install -g @vscjava/vscode-autotest
58+
- name: Install autotest dependencies
59+
working-directory: javaext-autotest
60+
run: npm ci && npm run build
5961

6062
- name: Run test plan(s)
6163
shell: pwsh
62-
working-directory: vscode-java-pack
64+
working-directory: javaext-autotest
6365
run: |
6466
$plan = "${{ inputs.test_plan }}"
6567
if ($plan -and $plan -ne "") {
6668
Write-Host "Running: $plan"
67-
autotest run "test-plans/$plan"
69+
npx autotest run "test-plans/$plan"
6870
} else {
6971
Write-Host "Running all test plans..."
7072
$plans = Get-ChildItem test-plans -Filter "*.yaml" |
@@ -73,7 +75,7 @@ jobs:
7375
$failed = @()
7476
foreach ($p in $plans) {
7577
Write-Host "`n========== $($p.Name) =========="
76-
autotest run "test-plans/$($p.Name)"
78+
npx autotest run "test-plans/$($p.Name)"
7779
if ($LASTEXITCODE -ne 0) { $failed += $p.Name }
7880
}
7981
Write-Host "`n========== Summary =========="
@@ -89,5 +91,5 @@ jobs:
8991
uses: actions/upload-artifact@v4
9092
with:
9193
name: e2e-test-results
92-
path: vscode-java-pack/test-results/
94+
path: javaext-autotest/test-results/
9395
retention-days: 30

0 commit comments

Comments
 (0)