Skip to content

Commit f5c2f72

Browse files
committed
ci: update
1 parent 496adad commit f5c2f72

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/windowsUI.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,19 @@ jobs:
7575
7676
- name: Print language server Log if job failed
7777
if: ${{ failure() }}
78-
run: Get-ChildItem -Path ./test-resources/settings/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log | cat
78+
run: |
79+
$logFiles = Get-ChildItem -Path ./test-resources/settings/User/workspaceStorage -Recurse -Filter ".log" -ErrorAction SilentlyContinue |
80+
Where-Object { $_.FullName -match 'redhat\.java.*jdt_ws.*\.metadata.*\.log$' }
81+
if ($logFiles) {
82+
$logFiles | ForEach-Object { Write-Host $_.FullName; Get-Content $_ }
83+
} else {
84+
Write-Host "No language server log found"
85+
}
86+
87+
- name: Upload test screenshots
88+
if: ${{ failure() }}
89+
uses: actions/upload-artifact@v4
90+
with:
91+
name: test-screenshots
92+
path: screenshots/
93+
if-no-files-found: ignore

0 commit comments

Comments
 (0)