From b51a4c44373a76d4f21de0913d3e1773e11d3556 Mon Sep 17 00:00:00 2001 From: Lucas Trzesniewski Date: Fri, 20 Dec 2024 15:32:33 +0100 Subject: [PATCH] Update tests to .NET 9 and Testing lib to .NET 8 NUnit does not have an explicit net9.0 target --- .github/workflows/build.yml | 10 +++++----- .../Abc.Zebus.Directory.Cassandra.Tests.csproj | 2 +- .../Abc.Zebus.Directory.RocksDb.Tests.csproj | 2 +- .../Abc.Zebus.Directory.Runner.csproj | 2 +- .../Abc.Zebus.Directory.Tests.csproj | 2 +- .../Abc.Zebus.Persistence.Cassandra.Tests.csproj | 2 +- .../Abc.Zebus.Persistence.RocksDb.Tests.csproj | 2 +- .../Abc.Zebus.Persistence.Runner.csproj | 2 +- .../Abc.Zebus.Persistence.Tests.csproj | 2 +- src/Abc.Zebus.Testing/Abc.Zebus.Testing.csproj | 2 +- src/Abc.Zebus.Tests/Abc.Zebus.Tests.csproj | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca711c52..232583e7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,8 +3,8 @@ name: Build on: [push, pull_request] env: - BUILD_DOTNET_VERSION: 6.0.x - BUILD_LINUX_TEST_TFM: net6.0 + BUILD_DOTNET_VERSION: 9.0.x + BUILD_LINUX_TEST_TFM: net9.0 DOTNET_NOLOGO: 1 jobs: @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ env.BUILD_DOTNET_VERSION }} @@ -33,7 +33,7 @@ jobs: run: dotnet test --configuration Release --no-build src/Abc.Zebus.sln - name: Upload NuGet - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: NuGet path: output/*.nupkg @@ -46,7 +46,7 @@ jobs: uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ env.BUILD_DOTNET_VERSION }} diff --git a/src/Abc.Zebus.Directory.Cassandra.Tests/Abc.Zebus.Directory.Cassandra.Tests.csproj b/src/Abc.Zebus.Directory.Cassandra.Tests/Abc.Zebus.Directory.Cassandra.Tests.csproj index d4fb1a4c..a184c8c4 100644 --- a/src/Abc.Zebus.Directory.Cassandra.Tests/Abc.Zebus.Directory.Cassandra.Tests.csproj +++ b/src/Abc.Zebus.Directory.Cassandra.Tests/Abc.Zebus.Directory.Cassandra.Tests.csproj @@ -1,7 +1,7 @@  - net48;net6.0 + net48;net9.0 $(ZebusDirectoryVersion) diff --git a/src/Abc.Zebus.Directory.RocksDb.Tests/Abc.Zebus.Directory.RocksDb.Tests.csproj b/src/Abc.Zebus.Directory.RocksDb.Tests/Abc.Zebus.Directory.RocksDb.Tests.csproj index 3efe9e0a..5ad00385 100644 --- a/src/Abc.Zebus.Directory.RocksDb.Tests/Abc.Zebus.Directory.RocksDb.Tests.csproj +++ b/src/Abc.Zebus.Directory.RocksDb.Tests/Abc.Zebus.Directory.RocksDb.Tests.csproj @@ -1,7 +1,7 @@  - net48;net6.0 + net48;net9.0 x64 AnyCPU;x64 diff --git a/src/Abc.Zebus.Directory.Runner/Abc.Zebus.Directory.Runner.csproj b/src/Abc.Zebus.Directory.Runner/Abc.Zebus.Directory.Runner.csproj index 9c445b60..5ee8b78b 100644 --- a/src/Abc.Zebus.Directory.Runner/Abc.Zebus.Directory.Runner.csproj +++ b/src/Abc.Zebus.Directory.Runner/Abc.Zebus.Directory.Runner.csproj @@ -1,7 +1,7 @@  - net6.0 + net9.0 Exe $(ZebusDirectoryVersion) false diff --git a/src/Abc.Zebus.Directory.Tests/Abc.Zebus.Directory.Tests.csproj b/src/Abc.Zebus.Directory.Tests/Abc.Zebus.Directory.Tests.csproj index 0ec38cd5..ca23e181 100644 --- a/src/Abc.Zebus.Directory.Tests/Abc.Zebus.Directory.Tests.csproj +++ b/src/Abc.Zebus.Directory.Tests/Abc.Zebus.Directory.Tests.csproj @@ -1,7 +1,7 @@  - net48;net6.0 + net48;net9.0 $(ZebusDirectoryVersion) diff --git a/src/Abc.Zebus.Persistence.Cassandra.Tests/Abc.Zebus.Persistence.Cassandra.Tests.csproj b/src/Abc.Zebus.Persistence.Cassandra.Tests/Abc.Zebus.Persistence.Cassandra.Tests.csproj index 27c094b0..b462f5bb 100644 --- a/src/Abc.Zebus.Persistence.Cassandra.Tests/Abc.Zebus.Persistence.Cassandra.Tests.csproj +++ b/src/Abc.Zebus.Persistence.Cassandra.Tests/Abc.Zebus.Persistence.Cassandra.Tests.csproj @@ -1,7 +1,7 @@  - net48;net6.0 + net48;net9.0 $(ZebusPersistenceVersion) Abc.Zebus.Persistence.Cassandra.Tests diff --git a/src/Abc.Zebus.Persistence.RocksDb.Tests/Abc.Zebus.Persistence.RocksDb.Tests.csproj b/src/Abc.Zebus.Persistence.RocksDb.Tests/Abc.Zebus.Persistence.RocksDb.Tests.csproj index b10ced33..ba2f2d60 100644 --- a/src/Abc.Zebus.Persistence.RocksDb.Tests/Abc.Zebus.Persistence.RocksDb.Tests.csproj +++ b/src/Abc.Zebus.Persistence.RocksDb.Tests/Abc.Zebus.Persistence.RocksDb.Tests.csproj @@ -1,7 +1,7 @@  - net48;net6.0 + net48;net9.0 $(ZebusPersistenceVersion) x64 AnyCPU;x64 diff --git a/src/Abc.Zebus.Persistence.Runner/Abc.Zebus.Persistence.Runner.csproj b/src/Abc.Zebus.Persistence.Runner/Abc.Zebus.Persistence.Runner.csproj index 889f9883..6a376903 100644 --- a/src/Abc.Zebus.Persistence.Runner/Abc.Zebus.Persistence.Runner.csproj +++ b/src/Abc.Zebus.Persistence.Runner/Abc.Zebus.Persistence.Runner.csproj @@ -1,7 +1,7 @@  - net6.0 + net9.0 Exe $(ZebusPersistenceVersion) false diff --git a/src/Abc.Zebus.Persistence.Tests/Abc.Zebus.Persistence.Tests.csproj b/src/Abc.Zebus.Persistence.Tests/Abc.Zebus.Persistence.Tests.csproj index f834cc73..fe328f3f 100644 --- a/src/Abc.Zebus.Persistence.Tests/Abc.Zebus.Persistence.Tests.csproj +++ b/src/Abc.Zebus.Persistence.Tests/Abc.Zebus.Persistence.Tests.csproj @@ -1,7 +1,7 @@  - net48;net6.0 + net48;net9.0 $(ZebusPersistenceVersion) diff --git a/src/Abc.Zebus.Testing/Abc.Zebus.Testing.csproj b/src/Abc.Zebus.Testing/Abc.Zebus.Testing.csproj index 4bb7809c..5066f9dc 100644 --- a/src/Abc.Zebus.Testing/Abc.Zebus.Testing.csproj +++ b/src/Abc.Zebus.Testing/Abc.Zebus.Testing.csproj @@ -1,6 +1,6 @@  - net48;net6.0 + net48;net8.0 Zebus.Testing Test tools for Zebus $(ZebusTestingVersion) diff --git a/src/Abc.Zebus.Tests/Abc.Zebus.Tests.csproj b/src/Abc.Zebus.Tests/Abc.Zebus.Tests.csproj index 4975bfff..4983a9b9 100644 --- a/src/Abc.Zebus.Tests/Abc.Zebus.Tests.csproj +++ b/src/Abc.Zebus.Tests/Abc.Zebus.Tests.csproj @@ -1,6 +1,6 @@  - net48;net6.0 + net48;net9.0 $(ZebusVersion) true