Skip to content

Commit 7c7012d

Browse files
committed
2 parents c9a6411 + 5be6a32 commit 7c7012d

File tree

5 files changed

+48
-40
lines changed

5 files changed

+48
-40
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,40 @@ jobs:
1313
name: Testing
1414
strategy:
1515
matrix:
16-
dotnet: [ 'net6.0' ]
16+
include:
17+
- framework: "net6.0"
18+
version: 6.0.x
19+
- framework: net8.0
20+
version: 8.0.x
21+
1722
steps:
1823
- name: Checkout code base
19-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2025

21-
- uses: actions/setup-dotnet@v1
26+
- uses: actions/setup-dotnet@v4
2227
with:
23-
dotnet-version: '6.0.x'
28+
dotnet-version: 8.0.x
2429

2530
- name: Run tests
26-
run: dotnet test --verbosity normal -f ${{ matrix.dotnet }}
31+
run: dotnet test --verbosity normal -f ${{ matrix.framework }}
2732

2833
build:
2934
runs-on: windows-latest
3035
name: Building
3136
strategy:
3237
matrix:
33-
dotnet: ['net6.0']
38+
include:
39+
- framework: "net6.0"
40+
version: 6.0.x
41+
- framework: net8.0
42+
version: 8.0.x
3443
steps:
3544
- name: Checkout code base
36-
uses: actions/checkout@v2
45+
uses: actions/checkout@v4
3746

38-
- uses: actions/setup-dotnet@v1
47+
- uses: actions/setup-dotnet@v4
3948
with:
40-
dotnet-version: '6.0.x'
49+
dotnet-version: 8.0.x
4150

4251
- name: Cleaning
4352
run: dotnet clean
@@ -46,12 +55,12 @@ jobs:
4655
run: dotnet restore WorkflowEngine.sln
4756

4857
- name: Build solution
49-
run: dotnet build -o ../build/${{ matrix.dotnet }} -c Release --no-restore -m:1 -f ${{ matrix.dotnet }}
58+
run: dotnet build -o ../build/${{ matrix.dotnet }} -c Release --no-restore -m:1 -f ${{ matrix.framework }}
5059

5160
- name: Archive build to artifacts
5261
uses: actions/upload-artifact@v2
5362
with:
5463
name: build
5564
path: |
56-
build/${{ matrix.dotnet }}/*
65+
build/${{ matrix.framework }}/*
5766
retention-days: 5

.github/workflows/release.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,22 @@ jobs:
1111
runs-on: windows-latest
1212
name: Testing
1313
strategy:
14-
matrix:
15-
dotnet: [ 'net6.0' ]
14+
matrix:
15+
include:
16+
- framework: "net6.0"
17+
version: 6.0.x
18+
- framework: net8.0
19+
version: 8.0.x
1620
steps:
1721
- name: Checkout code base
18-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
1923

20-
- uses: actions/setup-dotnet@v1
24+
- uses: actions/setup-dotnet@v4
2125
with:
22-
dotnet-version: '6.0.x'
26+
dotnet-version: 8.0.x
2327

2428
- name: Run tests
25-
run: dotnet test --verbosity normal -f ${{ matrix.dotnet }}
29+
run: dotnet test --verbosity normal -f ${{ matrix.framework }}
2630

2731

2832
release:
@@ -32,17 +36,17 @@ jobs:
3236
- test
3337
steps:
3438
- name: Checkout repo
35-
uses: actions/checkout@v2
39+
uses: actions/checkout@v4
3640

3741
- name: Setup Git for Windows' minimal SDK
3842
uses: git-for-windows/setup-git-for-windows-sdk@v1
3943

4044
- name: Print GIT verison
4145
run: git --version
4246

43-
- uses: actions/setup-dotnet@v1
47+
- uses: actions/setup-dotnet@v4
4448
with:
45-
dotnet-version: '6.0.x'
49+
dotnet-version: '8.0.x'
4650

4751
- name: Setup Node.js
4852
uses: actions/setup-node@v1

apps/WorkflowEngine.DemoApp/WorkflowEngine.DemoApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Hangfire" Version="1.8.6" />
10+
<PackageReference Include="Hangfire" Version="1.8.12" />
1111
</ItemGroup>
1212

1313
<ItemGroup>
Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp3.1;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
55

66
<PackageId>Delegate.WorkflowEngine.Core</PackageId>
77
<Authors>Delegate A/S</Authors>
@@ -10,18 +10,10 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
13+
<PackageReference Include="Delegate.ExpressionEngine" Version="4.1.2" />
14+
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
15+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
1416
</ItemGroup>
1517

16-
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
17-
<PackageReference Include="Delegate.ExpressionEngine" Version="4.1.2" />
18-
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="5.0.0" />
19-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0" />
20-
</ItemGroup>
21-
<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
22-
<PackageReference Include="Delegate.ExpressionEngine" Version="4.1.2" />
23-
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
24-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.0" />
25-
</ItemGroup>
26-
18+
2719
</Project>

src/WorkflowEngine.Hangfire/WorkflowEngine.Hangfire.csproj

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp3.1;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
55

66
<PackageId>Delegate.WorkflowEngine.Hangfire</PackageId>
77
<Authors>Delegate A/S</Authors>
@@ -10,17 +10,20 @@
1010
<RootNamespace>WorkflowEngine</RootNamespace>
1111
</PropertyGroup>
1212

13-
<ItemGroup>
14-
<PackageReference Include="Hangfire.Core" Version="1.8.6" />
13+
<ItemGroup>
14+
<PackageReference Include="Hangfire.Core" Version="1.8.12" />
1515

1616
</ItemGroup>
1717

1818
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
1919
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="3.1.0" />
2020
</ItemGroup>
2121
<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
22-
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="6.0.0" />
22+
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" />
2323
</ItemGroup>
24+
<ItemGroup Condition="'$(TargetFramework)'=='net8.0'">
25+
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" />
26+
</ItemGroup>
2427
<ItemGroup>
2528
<ProjectReference Include="..\WorkflowEngine.Core\WorkflowEngine.Core.csproj" />
2629
</ItemGroup>

0 commit comments

Comments
 (0)