Skip to content

Commit 37eeb76

Browse files
authored
Merge pull request #79 from serverlessworkflow/feat-dotnet8-support
Add dual .NET 8/9 support
2 parents 16cde52 + 9743343 commit 37eeb76

File tree

7 files changed

+21
-23
lines changed

7 files changed

+21
-23
lines changed

.github/workflows/build-dotnet.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ env:
1616
jobs:
1717
build:
1818
runs-on: ubuntu-latest
19-
strategy:
20-
matrix:
21-
dotnet-version: ['9.0.x' ]
22-
2319
steps:
2420
- name: Checkout
2521
uses: actions/checkout@v3
@@ -32,10 +28,12 @@ jobs:
3228
git fetch
3329
git pull
3430
35-
- name: Setup .NET ${{ matrix.dotnet-version }}
31+
- name: Setup .NET
3632
uses: actions/setup-dotnet@v2
3733
with:
38-
dotnet-version: ${{ matrix.dotnet-version }}
34+
dotnet-version: |
35+
8.0.x
36+
9.0.x
3937
4038
- name: Restore dependencies
4139
run: dotnet restore "${{ env.SOLUTION }}"

.github/workflows/publish.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717
- name: Setup .NET
1818
uses: actions/setup-dotnet@v1
1919
with:
20-
dotnet-version: 9.0.x
20+
dotnet-version: |
21+
8.0.x
22+
9.0.x
2123
- name: Restore dependencies
2224
run: dotnet restore "${{ env.SOLUTION }}"
2325
- name: Build

.github/workflows/test-dotnet.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,16 @@ env:
1616
jobs:
1717
build:
1818
runs-on: ubuntu-latest
19-
strategy:
20-
matrix:
21-
dotnet-version: ['9.0.x' ]
22-
2319
steps:
2420
- name: Checkout
2521
uses: actions/checkout@v3
2622

27-
- name: Setup .NET ${{ matrix.dotnet-version }}
23+
- name: Setup .NET
2824
uses: actions/setup-dotnet@v2
2925
with:
30-
dotnet-version: ${{ matrix.dotnet-version }}
26+
dotnet-version: |
27+
8.0.x
28+
9.0.x
3129
3230
- name: Restore dependencies
3331
run: dotnet restore "${{ env.SOLUTION }}"

src/ServerlessWorkflow.Sdk.Builders/ServerlessWorkflow.Sdk.Builders.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<VersionPrefix>1.0.0</VersionPrefix>

src/ServerlessWorkflow.Sdk.IO/ServerlessWorkflow.Sdk.IO.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<VersionPrefix>1.0.0</VersionPrefix>

src/ServerlessWorkflow.Sdk/ServerlessWorkflow.Sdk.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<VersionPrefix>1.0.0</VersionPrefix>
@@ -33,9 +33,9 @@
3333

3434
<ItemGroup>
3535
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="11.11.0" />
36-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.1" />
37-
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.1" />
38-
<PackageReference Include="Neuroglia.Serialization.YamlDotNet" Version="4.19.0" />
36+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.3" />
37+
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.3" />
38+
<PackageReference Include="Neuroglia.Serialization.YamlDotNet" Version="4.20.1" />
3939
<PackageReference Include="Semver" Version="3.0.0" />
4040
</ItemGroup>
4141

tests/ServerlessWorkflow.Sdk.UnitTests/ServerlessWorkflow.Sdk.UnitTests.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

@@ -14,10 +14,10 @@
1414
<PrivateAssets>all</PrivateAssets>
1515
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1616
</PackageReference>
17-
<PackageReference Include="FluentAssertions" Version="8.0.1" />
18-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
17+
<PackageReference Include="FluentAssertions" Version="8.1.1" />
18+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
1919
<PackageReference Include="xunit" Version="2.9.3" />
20-
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1">
20+
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.2">
2121
<PrivateAssets>all</PrivateAssets>
2222
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2323
</PackageReference>

0 commit comments

Comments
 (0)