Skip to content

Commit

Permalink
Update tests to .NET 9 and Testing lib to .NET 8
Browse files Browse the repository at this point in the history
NUnit does not have an explicit net9.0 target
  • Loading branch information
ltrzesniewski committed Dec 20, 2024
1 parent cd7b0a7 commit b51a4c4
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

Expand All @@ -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
Expand All @@ -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 }}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net48;net6.0</TargetFrameworks>
<TargetFrameworks>net48;net9.0</TargetFrameworks>
<Version>$(ZebusDirectoryVersion)</Version>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net48;net6.0</TargetFrameworks>
<TargetFrameworks>net48;net9.0</TargetFrameworks>
<Platform>x64</Platform>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<OutputType>Exe</OutputType>
<Version>$(ZebusDirectoryVersion)</Version>
<IsPackable>false</IsPackable>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net48;net6.0</TargetFrameworks>
<TargetFrameworks>net48;net9.0</TargetFrameworks>
<Version>$(ZebusDirectoryVersion)</Version>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net48;net6.0</TargetFrameworks>
<TargetFrameworks>net48;net9.0</TargetFrameworks>
<Version>$(ZebusPersistenceVersion)</Version>
<RootNamespace>Abc.Zebus.Persistence.Cassandra.Tests</RootNamespace>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net48;net6.0</TargetFrameworks>
<TargetFrameworks>net48;net9.0</TargetFrameworks>
<Version>$(ZebusPersistenceVersion)</Version>
<Platform>x64</Platform>
<Platforms>AnyCPU;x64</Platforms>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<OutputType>Exe</OutputType>
<Version>$(ZebusPersistenceVersion)</Version>
<IsPackable>false</IsPackable>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net48;net6.0</TargetFrameworks>
<TargetFrameworks>net48;net9.0</TargetFrameworks>
<Version>$(ZebusPersistenceVersion)</Version>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Abc.Zebus.Testing/Abc.Zebus.Testing.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net48;net6.0</TargetFrameworks>
<TargetFrameworks>net48;net8.0</TargetFrameworks>
<PackageId>Zebus.Testing</PackageId>
<Description>Test tools for Zebus</Description>
<Version>$(ZebusTestingVersion)</Version>
Expand Down
2 changes: 1 addition & 1 deletion src/Abc.Zebus.Tests/Abc.Zebus.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net48;net6.0</TargetFrameworks>
<TargetFrameworks>net48;net9.0</TargetFrameworks>
<Version>$(ZebusVersion)</Version>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
Expand Down

0 comments on commit b51a4c4

Please sign in to comment.