1515 fetch-depth : 0 # needed for Nerdbank.GitVersioning
1616
1717 - name : Setup .NET
18- uses : actions/setup-dotnet@v4
18+ uses : actions/setup-dotnet@v5
1919
2020 - name : Build Unit Tests .NET
2121 run : dotnet build -f net9.0 test/Renci.SshNet.Tests/
6262 fetch-depth : 0 # needed for Nerdbank.GitVersioning
6363
6464 - name : Setup .NET
65- uses : actions/setup-dotnet@v4
65+ uses : actions/setup-dotnet@v5
6666
6767 - name : Build Solution
6868 run : dotnet build Renci.SshNet.sln
@@ -103,8 +103,8 @@ jobs:
103103 -p:CoverletOutput=../../coverlet/windows_unit_test_net_4_6_2_coverage.xml `
104104 test/Renci.SshNet.Tests/
105105
106- Windows-Integration-Tests :
107- name : Windows Integration Tests
106+ Windows-Integration-Tests-NetFramework :
107+ name : Windows Integration Tests .NET Framework
108108 runs-on : windows-2025
109109 steps :
110110 - name : Checkout
@@ -113,7 +113,7 @@ jobs:
113113 fetch-depth : 0 # needed for Nerdbank.GitVersioning
114114
115115 - name : Setup .NET
116- uses : actions/setup-dotnet@v4
116+ uses : actions/setup-dotnet@v5
117117
118118 - name : Setup WSL2
119119 uses : Vampire/setup-wsl@6a8db447be7ed35f2f499c02c6e60ff77ef11278 # v6.0.0
@@ -142,7 +142,49 @@ jobs:
142142 - name : Archive Coverlet Results
143143 uses : actions/upload-artifact@v4
144144 with :
145- name : Coverlet Results Windows
145+ name : Coverlet Results Windows .NET Framework
146+ path : coverlet
147+
148+ Windows-Integration-Tests-Net :
149+ name : Windows Integration Tests .NET
150+ runs-on : windows-2025
151+ steps :
152+ - name : Checkout
153+ uses : actions/checkout@v5
154+ with :
155+ fetch-depth : 0 # needed for Nerdbank.GitVersioning
156+
157+ - name : Setup .NET
158+ uses : actions/setup-dotnet@v5
159+
160+ - name : Setup WSL2
161+ uses : Vampire/setup-wsl@6a8db447be7ed35f2f499c02c6e60ff77ef11278 # v6.0.0
162+ with :
163+ distribution : Ubuntu-24.04
164+
165+ - name : Setup SSH Server
166+ shell : wsl-bash {0}
167+ run : |
168+ apt-get update && apt-get upgrade -y
169+ apt-get install -y podman
170+ podman build -t renci-ssh-tests-server-image -f test/Renci.SshNet.IntegrationTests/Dockerfile test/Renci.SshNet.IntegrationTests/
171+ podman run --rm -h renci-ssh-tests-server -d -p 2222:22 renci-ssh-tests-server-image
172+
173+ - name : Run Integration Tests .NET
174+ run :
175+ dotnet test `
176+ -f net9.0 `
177+ --logger "console;verbosity=normal" `
178+ --logger GitHubActions `
179+ -p:CollectCoverage=true `
180+ -p:CoverletOutputFormat=cobertura `
181+ -p:CoverletOutput=..\..\coverlet\windows_integration_test_net_9_coverage.xml `
182+ test\Renci.SshNet.IntegrationTests\
183+
184+ - name : Archive Coverlet Results
185+ uses : actions/upload-artifact@v4
186+ with :
187+ name : Coverlet Results Windows .NET
146188 path : coverlet
147189
148190 Publish :
@@ -153,6 +195,8 @@ jobs:
153195 needs :
154196 - Windows
155197 - Linux
198+ - Windows-Integration-Tests-NetFramework
199+ - Windows-Integration-Tests-Net
156200 steps :
157201 - name : Download NuGet Package
158202 uses : actions/download-artifact@v5
0 commit comments