From 173430e6a2fef8a1332412710ba00cdca3c51fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20=C5=81api=C5=84ski?= Date: Mon, 12 Oct 2026 22:00:04 +0200 Subject: [PATCH 1/2] ci: run the unit tests on every target framework The packages ship for net8.0, net9.0 and net10.0, but the tests only ran on net10.0. The unit tests now target all three, with the test host matching each runtime. CI already installs the three runtimes. The database tests stay on net10.0, since the store code does not differ between targets. --- src/ConfigWay.Tests/ConfigWay.Tests.csproj | 4 ++-- src/Directory.Packages.props | 11 +++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/ConfigWay.Tests/ConfigWay.Tests.csproj b/src/ConfigWay.Tests/ConfigWay.Tests.csproj index b1a065d..072fffd 100644 --- a/src/ConfigWay.Tests/ConfigWay.Tests.csproj +++ b/src/ConfigWay.Tests/ConfigWay.Tests.csproj @@ -1,7 +1,7 @@ - + - net10.0 + net8.0;net9.0;net10.0 false true true diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 0f693b5..fa9943e 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -3,6 +3,13 @@ true + + + 10.0.12 + 8.0.31 + 9.0.20 + + @@ -12,8 +19,8 @@ - - + + From 640c7e52e2701539de334fbf1fd0eb4c2b26a0d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20=C5=81api=C5=84ski?= Date: Mon, 12 Oct 2026 22:02:06 +0200 Subject: [PATCH 2/2] ci: keep a results file per target framework With a fixed file name, each framework's run overwrote the previous one. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6222d5d..79257d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,7 @@ jobs: run: > dotnet test src/ConfigWay.Tests/ConfigWay.Tests.csproj --no-build --configuration Release - --logger "trx;LogFileName=unit-results.trx" + --logger "trx;LogFilePrefix=unit-results" - name: Upload test results uses: actions/upload-artifact@v4