Skip to content

Commit 821af84

Browse files
committed
Updating tests to .NET 8 & 9
1 parent 49bad67 commit 821af84

File tree

7 files changed

+28
-7
lines changed

7 files changed

+28
-7
lines changed

.github/workflows/cd-aspnet-extensions.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
uses: actions/setup-dotnet@v4
2929
with:
3030
dotnet-version: '8.0.x'
31+
- name: Setup .NET 9.0 SDK
32+
uses: actions/setup-dotnet@v4
33+
with:
34+
dotnet-version: '9.0.x'
3135
- name: Restore
3236
run: dotnet restore
3337
- name: Build

.github/workflows/cd-azure-functions-worker-extensions.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
uses: actions/setup-dotnet@v4
2929
with:
3030
dotnet-version: '8.0.x'
31+
- name: Setup .NET 9.0 SDK
32+
uses: actions/setup-dotnet@v4
33+
with:
34+
dotnet-version: '9.0.x'
3135
- name: Restore
3236
run: dotnet restore
3337
- name: Build

.github/workflows/cd-azure-webjobs-extensions.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
uses: actions/setup-dotnet@v4
2929
with:
3030
dotnet-version: '8.0.x'
31+
- name: Setup .NET 9.0 SDK
32+
uses: actions/setup-dotnet@v4
33+
with:
34+
dotnet-version: '9.0.x'
3135
- name: Restore
3236
run: dotnet restore
3337
- name: Build

.github/workflows/cd-net-http.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
uses: actions/setup-dotnet@v4
2929
with:
3030
dotnet-version: '8.0.x'
31+
- name: Setup .NET 9.0 SDK
32+
uses: actions/setup-dotnet@v4
33+
with:
34+
dotnet-version: '9.0.x'
3135
- name: Restore
3236
run: dotnet restore
3337
- name: Build

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
uses: actions/setup-dotnet@v4
2929
with:
3030
dotnet-version: '8.0.x'
31+
- name: Setup .NET 9.0 SDK
32+
uses: actions/setup-dotnet@v4
33+
with:
34+
dotnet-version: '9.0.x'
3135
- name: Restore
3236
run: dotnet restore
3337
- name: Build

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
uses: actions/setup-dotnet@v4
2323
with:
2424
dotnet-version: '8.0.x'
25+
- name: Setup .NET 9.0 SDK
26+
uses: actions/setup-dotnet@v4
27+
with:
28+
dotnet-version: '9.0.x'
2529
- name: Restore
2630
run: dotnet restore
2731
- name: Build

test/Test.Lib.Net.Http.WebPush/Test.Lib.Net.Http.WebPush.csproj

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0;net8.0</TargetFrameworks>
3+
<TargetFrameworks>netcoreapp3.1;net8.0;net9.0</TargetFrameworks>
44
<IsPackable>false</IsPackable>
55
</PropertyGroup>
66
<ItemGroup>
@@ -14,15 +14,12 @@
1414
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
1515
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="3.1.0" />
1616
</ItemGroup>
17-
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
18-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="5.0.0" />
19-
</ItemGroup>
20-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
21-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.0" />
22-
</ItemGroup>
2317
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
2418
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.0" />
2519
</ItemGroup>
20+
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
21+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.0" />
22+
</ItemGroup>
2623
<ItemGroup>
2724
<ProjectReference Include="..\..\src\Lib.Net.Http.WebPush\Lib.Net.Http.WebPush.csproj" />
2825
</ItemGroup>

0 commit comments

Comments
 (0)