From 55fb46b04226c57faea143263374a71d2f7104b1 Mon Sep 17 00:00:00 2001 From: Stuart Ferguson Date: Fri, 20 Feb 2026 10:21:58 +0000 Subject: [PATCH 1/2] Update dependencies and improve test reporting in CI Updated NuGet package versions across all projects, including internal Shared packages, Swashbuckle.AspNetCore, Microsoft.Extensions, and coverlet. Enhanced GitHub Actions workflow to run tests in Release mode, generate .trx test reports, and publish/upload test results using dorny/test-reporter and actions/upload-artifact. No changes to application logic; all updates focus on dependency management and CI/CD improvements. --- .github/workflows/pullrequest.yml | 23 ++++++++++++++++--- .../CallbackHander.Testing.csproj | 2 +- ...CallbackHandler.BusinessLogic.Tests.csproj | 4 ++-- .../CallbackHandler.BusinessLogic.csproj | 8 +++---- ...andler.CallbackMessage.DomainEvents.csproj | 4 ++-- ...dler.CallbackMessageAggregate.Tests.csproj | 4 ++-- ...ackHandler.CallbackMessageAggregate.csproj | 6 ++--- .../CallbackHandler.IntegrationTests.csproj | 18 +++++++-------- .../CallbackHandler.Tests.csproj | 6 ++--- CallbackHandler/CallbackHandler.csproj | 22 +++++++++--------- 10 files changed, 57 insertions(+), 40 deletions(-) diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index b6670da..29e86dd 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -25,9 +25,26 @@ jobs: - name: Run Unit Tests run: | echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}" - dotnet test "CallbackHandler.BusinessLogic.Tests\CallbackHandler.BusinessLogic.Tests.csproj" - dotnet test "CallbackHandler.CallbackMessageAggregate.Tests\CallbackHandler.CallbackMessageAggregate.Tests.csproj" - dotnet test "CallbackHandler.Tests\CallbackHandler.Tests.csproj" + dotnet test "CallbackHandler.BusinessLogic.Tests\CallbackHandler.BusinessLogic.Tests.csproj" --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=businesslogic-test-results.trx" + dotnet test "CallbackHandler.CallbackMessageAggregate.Tests\CallbackHandler.CallbackMessageAggregate.Tests.csproj" --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=callbackmessageaggregate-test-results.trx" + dotnet test "CallbackHandler.Tests\CallbackHandler.Tests.csproj" --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=callbackhandler-test-results.trx" + + - name: Publish test results + uses: dorny/test-reporter@v1 + if: always() + with: + name: Unit Test Results + path: '**/TestResults/*.trx' + reporter: dotnet-trx + fail-on-error: true + + - name: Upload test results + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-results + path: '**/TestResults/*.trx' + retention-days: 30 - name: Build Docker Image run: docker build . --file CallbackHandler/Dockerfile --tag callbackhandler:latest diff --git a/CallbackHander.Testing/CallbackHander.Testing.csproj b/CallbackHander.Testing/CallbackHander.Testing.csproj index 436b70b..398ab32 100644 --- a/CallbackHander.Testing/CallbackHander.Testing.csproj +++ b/CallbackHander.Testing/CallbackHander.Testing.csproj @@ -13,7 +13,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/CallbackHandler.BusinessLogic.Tests/CallbackHandler.BusinessLogic.Tests.csproj b/CallbackHandler.BusinessLogic.Tests/CallbackHandler.BusinessLogic.Tests.csproj index 8d5a937..af5cde2 100644 --- a/CallbackHandler.BusinessLogic.Tests/CallbackHandler.BusinessLogic.Tests.csproj +++ b/CallbackHandler.BusinessLogic.Tests/CallbackHandler.BusinessLogic.Tests.csproj @@ -9,14 +9,14 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive all - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/CallbackHandler.BusinessLogic/CallbackHandler.BusinessLogic.csproj b/CallbackHandler.BusinessLogic/CallbackHandler.BusinessLogic.csproj index cb976a9..9b9cd2f 100644 --- a/CallbackHandler.BusinessLogic/CallbackHandler.BusinessLogic.csproj +++ b/CallbackHandler.BusinessLogic/CallbackHandler.BusinessLogic.csproj @@ -6,10 +6,10 @@ - - - - + + + + diff --git a/CallbackHandler.CallbackMessage.DomainEvents/CallbackHandler.CallbackMessage.DomainEvents.csproj b/CallbackHandler.CallbackMessage.DomainEvents/CallbackHandler.CallbackMessage.DomainEvents.csproj index 0d6269a..2b3a06c 100644 --- a/CallbackHandler.CallbackMessage.DomainEvents/CallbackHandler.CallbackMessage.DomainEvents.csproj +++ b/CallbackHandler.CallbackMessage.DomainEvents/CallbackHandler.CallbackMessage.DomainEvents.csproj @@ -5,7 +5,7 @@ None - - + + \ No newline at end of file diff --git a/CallbackHandler.CallbackMessageAggregate.Tests/CallbackHandler.CallbackMessageAggregate.Tests.csproj b/CallbackHandler.CallbackMessageAggregate.Tests/CallbackHandler.CallbackMessageAggregate.Tests.csproj index e83eb3a..fc94462 100644 --- a/CallbackHandler.CallbackMessageAggregate.Tests/CallbackHandler.CallbackMessageAggregate.Tests.csproj +++ b/CallbackHandler.CallbackMessageAggregate.Tests/CallbackHandler.CallbackMessageAggregate.Tests.csproj @@ -8,7 +8,7 @@ - + @@ -16,7 +16,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/CallbackHandler.CallbackMessageAggregate/CallbackHandler.CallbackMessageAggregate.csproj b/CallbackHandler.CallbackMessageAggregate/CallbackHandler.CallbackMessageAggregate.csproj index 03a9578..abbd74e 100644 --- a/CallbackHandler.CallbackMessageAggregate/CallbackHandler.CallbackMessageAggregate.csproj +++ b/CallbackHandler.CallbackMessageAggregate/CallbackHandler.CallbackMessageAggregate.csproj @@ -10,8 +10,8 @@ - - - + + + \ No newline at end of file diff --git a/CallbackHandler.IntegrationTests/CallbackHandler.IntegrationTests.csproj b/CallbackHandler.IntegrationTests/CallbackHandler.IntegrationTests.csproj index 0fd288e..3796b9c 100644 --- a/CallbackHandler.IntegrationTests/CallbackHandler.IntegrationTests.csproj +++ b/CallbackHandler.IntegrationTests/CallbackHandler.IntegrationTests.csproj @@ -10,18 +10,18 @@ - - - - - + + + + + - - - - + + + + diff --git a/CallbackHandler.Tests/CallbackHandler.Tests.csproj b/CallbackHandler.Tests/CallbackHandler.Tests.csproj index 3b40d3b..0243e59 100644 --- a/CallbackHandler.Tests/CallbackHandler.Tests.csproj +++ b/CallbackHandler.Tests/CallbackHandler.Tests.csproj @@ -8,8 +8,8 @@ - - + + @@ -17,7 +17,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/CallbackHandler/CallbackHandler.csproj b/CallbackHandler/CallbackHandler.csproj index 64a22f9..2330f3a 100644 --- a/CallbackHandler/CallbackHandler.csproj +++ b/CallbackHandler/CallbackHandler.csproj @@ -8,21 +8,21 @@ - + - - - + + + - - + + - - - - - + + + + + From beebb3d5be2b5ed6c4265ee55e5a345d6f352ba9 Mon Sep 17 00:00:00 2001 From: Stuart Ferguson Date: Fri, 20 Feb 2026 10:25:43 +0000 Subject: [PATCH 2/2] logging in integration tests --- .github/workflows/pullrequest.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index 29e86dd..00fbbad 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -29,6 +29,12 @@ jobs: dotnet test "CallbackHandler.CallbackMessageAggregate.Tests\CallbackHandler.CallbackMessageAggregate.Tests.csproj" --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=callbackmessageaggregate-test-results.trx" dotnet test "CallbackHandler.Tests\CallbackHandler.Tests.csproj" --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=callbackhandler-test-results.trx" + - name: Build Docker Image + run: docker build . --file CallbackHandler/Dockerfile --tag callbackhandler:latest + + - name: Run Integration Tests + run: dotnet test "CallbackHandler.IntegrationTests\CallbackHandler.IntegrationTests.csproj" --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=integration-test-results.trx" + - name: Publish test results uses: dorny/test-reporter@v1 if: always() @@ -46,9 +52,3 @@ jobs: path: '**/TestResults/*.trx' retention-days: 30 - - name: Build Docker Image - run: docker build . --file CallbackHandler/Dockerfile --tag callbackhandler:latest - - - name: Run Integration Tests - run: dotnet test "CallbackHandler.IntegrationTests\CallbackHandler.IntegrationTests.csproj" -