diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 814088c..98484d7 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -35,10 +35,10 @@ jobs: - name: Test #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 - run: dotnet test --no-build --verbosity normal --logger:trx --results-directory "TestResults" + run: dotnet test --no-build --verbosity normal --logger:trx --results-directory "TestResults" -p:TestTfmsInParallel=false -p:ParallelizeTestCollections=false - name: Upload dotnet test results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: dotnet-results path: TestResults diff --git a/global.json b/global.json index 21f3ca0..8da1b67 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "9.0.200", + "version": "9.0.300", "rollForward": "latestMinor", "allowPrerelease": false }, diff --git a/src/C3D/Extensions/Playwright/AspNetCore/C3D.Extensions.Playwright.AspNetCore.csproj b/src/C3D/Extensions/Playwright/AspNetCore/C3D.Extensions.Playwright.AspNetCore.csproj index 570651d..7603f8e 100644 --- a/src/C3D/Extensions/Playwright/AspNetCore/C3D.Extensions.Playwright.AspNetCore.csproj +++ b/src/C3D/Extensions/Playwright/AspNetCore/C3D.Extensions.Playwright.AspNetCore.csproj @@ -1,4 +1,4 @@ - + net6.0;net7.0;net8.0;net9.0 @@ -17,12 +17,14 @@ - - - + + + + + diff --git a/test/Sample.WebApp.Tests/InstallerTests.cs b/test/Sample.WebApp.Tests/InstallerTests.cs index fb20e3e..96d3e17 100644 --- a/test/Sample.WebApp.Tests/InstallerTests.cs +++ b/test/Sample.WebApp.Tests/InstallerTests.cs @@ -1,8 +1,10 @@ using C3D.Extensions.Playwright.AspNetCore.Utilities; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; using Xunit.Abstractions; +[assembly: CollectionBehavior(DisableTestParallelization = true)] + namespace Sample.WebApp.Tests; public class InstallerTests diff --git a/test/Sample.WebApp.Tests/Sample.WebApp.Tests.csproj b/test/Sample.WebApp.Tests/Sample.WebApp.Tests.csproj index e923a69..d3e1aae 100644 --- a/test/Sample.WebApp.Tests/Sample.WebApp.Tests.csproj +++ b/test/Sample.WebApp.Tests/Sample.WebApp.Tests.csproj @@ -1,7 +1,7 @@ - + - net6.0;net7.0;net8.0;net9.0 + net8.0;net9.0 enable enable @@ -20,9 +20,9 @@ - + - + runtime; build; native; contentfiles; analyzers; buildtransitive all