Skip to content

Commit 910e7d6

Browse files
Bump Microsoft.AspNetCore.Mvc.Testing and System.Text.Json (#81)
* Bump Microsoft.AspNetCore.Mvc.Testing and System.Text.Json Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.4 to 9.0.4 Bumps System.Text.Json to 8.0.5, 9.0.5 --- updated-dependencies: - dependency-name: Microsoft.AspNetCore.Mvc.Testing dependency-version: 9.0.4 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: System.Text.Json dependency-version: 8.0.5 dependency-type: direct:production update-type: version-update:semver-major - dependency-name: System.Text.Json dependency-version: 9.0.5 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Update dotnet.yml for artifact upload and test results - Upgrade actions/upload-artifact from v3 to v4 for improved functionality. - Modify dotnet test command to specify results directory as "TestResults". - Ensure test results upload step runs regardless of test outcomes. * Update package references in project file Downgrade `Microsoft.AspNetCore.Mvc.Testing` to stable versions for each target framework. Update `Microsoft.Playwright` to version `1.52.0`. Modify `System.Text.Json` references to include version `6.0.11` for `net6.0`, while retaining appropriate versions for `net7.0`, `net8.0`, and `net9.0`. * Update test project to target .NET 8.0 and 9.0 Removed support for .NET 6.0 and 7.0 in `Sample.WebApp.Tests.csproj`. Upgraded `Microsoft.NET.Test.Sdk` from 17.13.0 to 17.14.1 and `xunit.runner.visualstudio` from 3.0.2 to 3.1.1. * Try and avoid running install tests in parallel. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Cynthia Z E MacLeod (C3D) <[email protected]>
1 parent 6d3b927 commit 910e7d6

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

.github/workflows/dotnet.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535

3636
- name: Test
3737
#run: docker run --rm -v ${pwd}:/app -w /app --ipc=host mcr.microsoft.com/playwright/dotnet:v1.37.1-jammy dotnet test --no-build --verbosity normal --logger:trx
38-
run: dotnet test --no-build --verbosity normal --logger:trx --results-directory "TestResults"
38+
run: dotnet test --no-build --verbosity normal --logger:trx --results-directory "TestResults" -p:TestTfmsInParallel=false -p:ParallelizeTestCollections=false
3939

4040
- name: Upload dotnet test results
41-
uses: actions/upload-artifact@v3
41+
uses: actions/upload-artifact@v4
4242
with:
4343
name: dotnet-results
4444
path: TestResults

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.200",
3+
"version": "9.0.300",
44
"rollForward": "latestMinor",
55
"allowPrerelease": false
66
},

src/C3D/Extensions/Playwright/AspNetCore/C3D.Extensions.Playwright.AspNetCore.csproj

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

33
<PropertyGroup>
44
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
@@ -17,12 +17,14 @@
1717
<ItemGroup>
1818
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.36" Condition="'$(TargetFramework)'=='net6.0'" />
1919
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.20" Condition="'$(TargetFramework)'=='net7.0'" />
20-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.15" Condition="'$(TargetFramework)'=='net8.0'" />
21-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.4" Condition="'$(TargetFramework)'=='net9.0'" />
22-
<PackageReference Include="Microsoft.Playwright" Version="1.51.0" />
20+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.16" Condition="'$(TargetFramework)'=='net8.0'" />
21+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.5" Condition="'$(TargetFramework)'=='net9.0'" />
22+
<PackageReference Include="Microsoft.Playwright" Version="1.52.0" />
2323
</ItemGroup>
2424

2525
<ItemGroup>
26+
<PackageReference Include="System.Text.Json" Version="6.0.11" Condition="'$(TargetFramework)'=='net6.0'" />
2627
<PackageReference Include="System.Text.Json" Version="8.0.5" Condition="'$(TargetFramework)'=='net7.0' or '$(TargetFramework)'=='net8.0'" />
28+
<PackageReference Include="System.Text.Json" Version="9.0.5" Condition="'$(TargetFramework)'=='net9.0'" />
2729
</ItemGroup>
2830
</Project>

test/Sample.WebApp.Tests/InstallerTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
using C3D.Extensions.Playwright.AspNetCore.Utilities;
2-
using System.Runtime.InteropServices;
32
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
44
using Xunit.Abstractions;
55

6+
[assembly: CollectionBehavior(DisableTestParallelization = true)]
7+
68
namespace Sample.WebApp.Tests;
79

810
public class InstallerTests

test/Sample.WebApp.Tests/Sample.WebApp.Tests.csproj

Lines changed: 4 additions & 4 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>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

@@ -20,9 +20,9 @@
2020
</ItemGroup>
2121

2222
<ItemGroup Label="Testing">
23-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
23+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
2424
<PackageReference Include="xunit" Version="2.9.3" />
25-
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.2">
25+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.1">
2626
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2727
<PrivateAssets>all</PrivateAssets>
2828
</PackageReference>

0 commit comments

Comments
 (0)