From 1152c90f077b75f67c9ab68d9e01ddc008b8deb6 Mon Sep 17 00:00:00 2001 From: Marius Thesing Date: Sat, 23 Nov 2024 17:31:17 +0100 Subject: [PATCH] update GitHub Actions for .NET 9 --- .github/workflows/build.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e4b721d2..458e018c5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,13 +17,13 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: 9.0.x - name: Build Unit Tests .NET - run: dotnet build -f net8.0 test/Renci.SshNet.Tests/ + run: dotnet build -f net9.0 test/Renci.SshNet.Tests/ - name: Build IntegrationTests .NET - run: dotnet build -f net8.0 test/Renci.SshNet.IntegrationTests/ + run: dotnet build -f net9.0 test/Renci.SshNet.IntegrationTests/ - name: Build IntegrationTests .NET Framework run: dotnet build -f net48 test/Renci.SshNet.IntegrationTests/ @@ -31,25 +31,25 @@ jobs: - name: Run Unit Tests .NET run: | dotnet test \ - -f net8.0 \ + -f net9.0 \ --no-build \ --logger "console;verbosity=normal" \ --logger GitHubActions \ -p:CollectCoverage=true \ -p:CoverletOutputFormat=cobertura \ - -p:CoverletOutput=../../coverlet/linux_unit_test_net_8_coverage.xml \ + -p:CoverletOutput=../../coverlet/linux_unit_test_net_9_coverage.xml \ test/Renci.SshNet.Tests/ - name: Run Integration Tests .NET run: | dotnet test \ - -f net8.0 \ + -f net9.0 \ --no-build \ --logger "console;verbosity=normal" \ --logger GitHubActions \ -p:CollectCoverage=true \ -p:CoverletOutputFormat=cobertura \ - -p:CoverletOutput=../../coverlet/linux_integration_test_net_8_coverage.xml \ + -p:CoverletOutput=../../coverlet/linux_integration_test_net_9_coverage.xml \ test/Renci.SshNet.IntegrationTests/ # Also run a subset of the integration tests targeting netfx using mono. This is a temporary measure to get @@ -111,13 +111,13 @@ jobs: - name: Run Unit Tests .NET run: | dotnet test ` - -f net8.0 ` + -f net9.0 ` --no-build ` --logger "console;verbosity=normal" ` --logger GitHubActions ` -p:CollectCoverage=true ` -p:CoverletOutputFormat=cobertura ` - -p:CoverletOutput=../../coverlet/windows_unit_test_net_8_coverage.xml ` + -p:CoverletOutput=../../coverlet/windows_unit_test_net_9_coverage.xml ` test/Renci.SshNet.Tests/ - name: Run Unit Tests .NET Framework