Commit 7834a12
✨ Add Windows test workflow for PR CI (#6687)
* ✨ Add Windows test workflow for PR CI
Extract the Windows test workflow from #6474 to enable running
Windows-specific tests (e.g. registry-based detection) in CI.
See: #6474
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* 🐛 Fix Windows test workflow to only run Windows-specific tests
The previous version ran all tests in the services package on Windows,
which included Linux/macOS tests that fail due to path separators and
symlinks. Now dynamically discovers packages containing _windows_test.go
files and only runs those.
See: #6474
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* 🐛 Fix review comments on Windows test workflow
- Use relative paths for package discovery (DirectoryName returns absolute)
- Filter empty strings from package split to avoid ghost arguments
- Propagate go test exit code through Tee-Object
- Add -count=1 to disable test caching in CI
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* 🐛 Fix script injection risk and remove push trigger in Windows workflow
Pass test packages via environment variable instead of direct interpolation
to prevent potential script injection. Remove push trigger to match the
PR-only intent of the workflow filename.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8fa9ad4 commit 7834a12
1 file changed
+67
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
0 commit comments