This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | ||
| on: | ||
| - push | ||
| - pull_request | ||
| - workflow_dispatch | ||
| jobs: | ||
| - name: Setup WSL2 | ||
| uses: Vampire/setup-wsl@v5 | ||
| with: | ||
| distribution: Ubuntu-24.04 | ||
| - name: Setup SSH Server | ||
| shell: wsl-bash {0} | ||
| run: | | ||
| apt update && apt upgrade -y | ||
| apt-get install -y podman | ||
| podman build -t renci-ssh-tests-server-image -f test/Renci.SshNet.IntegrationTests/Dockerfile test/Renci.SshNet.IntegrationTests/ | ||
| podman run --rm -h renci-ssh-tests-server -d -p 2222:22 renci-ssh-tests-server-image | ||
| - name: Run Integration Tests .NET Framework | ||
| run: | ||
| dotnet test ` | ||
| -f net48 ` | ||
| --no-build ` | ||
| --logger "console;verbosity=normal" ` | ||
| --logger GitHubActions ` | ||
| -p:CollectCoverage=true ` | ||
| -p:CoverletOutputFormat=cobertura ` | ||
| -p:CoverletOutput=..\..\coverlet\windows_integration_test_net_4_8_coverage.xml ` | ||
| test\Renci.SshNet.IntegrationTests\ | ||