File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 - name : Restore dependencies
2323 run : dotnet restore WinHome.sln
2424
25+ - name : Install uv and bun (for tests)
26+ shell : pwsh
27+ run : |
28+ # Install uv
29+ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
30+ echo "$env:USERPROFILE\.cargo\bin" >> $env:GITHUB_PATH
31+
32+ # Install bun
33+ powershell -ExecutionPolicy ByPass -c "irm https://bun.sh/install.ps1 | iex"
34+ echo "$env:USERPROFILE\.bun\bin" >> $env:GITHUB_PATH
35+
2536 - name : Run Tests
2637 run : dotnet test WinHome.sln --no-restore --verbosity normal --collect "XPlat Code Coverage"
2738
Original file line number Diff line number Diff line change 2222 - name : Restore dependencies
2323 run : dotnet restore src/WinHome.csproj
2424
25+ - name : Install uv and bun (for tests)
26+ shell : pwsh
27+ run : |
28+ # Install uv
29+ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
30+ echo "$env:USERPROFILE\.cargo\bin" >> $env:GITHUB_PATH
31+
32+ # Install bun
33+ powershell -ExecutionPolicy ByPass -c "irm https://bun.sh/install.ps1 | iex"
34+ echo "$env:USERPROFILE\.bun\bin" >> $env:GITHUB_PATH
35+
36+ - name : Run Unit Tests
37+ run : dotnet test tests/WinHome.Tests/WinHome.Tests.csproj
38+
2539 - name : Build WinHome
2640 run : dotnet publish src/WinHome.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -o publish
2741
Original file line number Diff line number Diff line change @@ -16,6 +16,14 @@ public async Task PluginRunner_RealExecution_TalksToPythonViaUv()
1616 // Arrange
1717 var mockLogger = new Mock < ILogger > ( ) ;
1818 var resolver = new WinHome . Services . System . RuntimeResolver ( mockLogger . Object ) ;
19+
20+ // Skip if uv is not installed
21+ try {
22+ resolver . Resolve ( "uv" ) ;
23+ } catch {
24+ return ; // Skip test if runtime not found
25+ }
26+
1927 var runner = new PluginRunner ( mockLogger . Object , resolver ) ;
2028
2129 // We need to point to the actual test plugin we just created
@@ -62,6 +70,14 @@ public async Task PluginRunner_RealExecution_TalksToJsViaBun()
6270 // Arrange
6371 var mockLogger = new Mock < ILogger > ( ) ;
6472 var resolver = new WinHome . Services . System . RuntimeResolver ( mockLogger . Object ) ;
73+
74+ // Skip if bun is not installed
75+ try {
76+ resolver . Resolve ( "bun" ) ;
77+ } catch {
78+ return ; // Skip test if runtime not found
79+ }
80+
6581 var runner = new PluginRunner ( mockLogger . Object , resolver ) ;
6682
6783 // We need to point to the actual test plugin we just created
You can’t perform that action at this time.
0 commit comments