From c09d57de85f91d60dee7573c277670a032dad45b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fele?= Date: Mon, 19 Jan 2026 11:57:52 +0100 Subject: [PATCH] Update github actions to run all tests separately, and no longer fail if a test fails --- .github/workflows/build-and-publish.yml | 21 ++++++++++++++++++--- .github/workflows/build.yml | 21 ++++++++++++++++++--- 2 files changed, 36 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 477141d..ef34580 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -9,6 +9,7 @@ jobs: runs-on: windows-latest permissions: contents: read + actions: read packages: write checks: write @@ -29,8 +30,21 @@ jobs: - name: Build run: dotnet build -c Release --no-restore - - name: Test - run: dotnet test -c Release --no-build --results-directory ./test-results -- --report-trx --report-trx-filename test-results.trx + - name: Test RemoteViewer.Shared.Tests + run: dotnet test --project tests/RemoteViewer.Shared.Tests -c Release --no-build --results-directory ./test-results -- --report-trx --report-trx-filename shared-tests.trx + continue-on-error: true + + - name: Test RemoteViewer.Client.Tests + run: dotnet test --project tests/RemoteViewer.Client.Tests -c Release --no-build --results-directory ./test-results -- --report-trx --report-trx-filename client-tests.trx + continue-on-error: true + + - name: Test RemoteViewer.Server.Tests + run: dotnet test --project tests/RemoteViewer.Server.Tests -c Release --no-build --results-directory ./test-results -- --report-trx --report-trx-filename server-tests.trx + continue-on-error: true + + - name: Test RemoteViewer.IntegrationTests + run: dotnet test --project tests/RemoteViewer.IntegrationTests -c Release --no-build --results-directory ./test-results -- --report-trx --report-trx-filename integration-tests.trx + continue-on-error: true - name: Upload test results uses: actions/upload-artifact@v4 @@ -40,12 +54,13 @@ jobs: path: ./test-results/**/*.trx - name: Publish test results - uses: dorny/test-reporter@v1 + uses: dorny/test-reporter@v2.5.0 if: always() with: name: Test Results path: ./test-results/**/*.trx reporter: dotnet-trx + fail-on-error: 'false' - name: Publish RemoteViewer.Client run: | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9514202..fdb8317 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,7 @@ jobs: runs-on: windows-latest permissions: contents: read + actions: read checks: write pull-requests: write @@ -29,8 +30,21 @@ jobs: - name: Build run: dotnet build -c Release --no-restore - - name: Test - run: dotnet test -c Release --no-build --results-directory ./test-results -- --report-trx --report-trx-filename test-results.trx + - name: Test RemoteViewer.Shared.Tests + run: dotnet test --project tests/RemoteViewer.Shared.Tests -c Release --no-build --results-directory ./test-results -- --report-trx --report-trx-filename shared-tests.trx + continue-on-error: true + + - name: Test RemoteViewer.Client.Tests + run: dotnet test --project tests/RemoteViewer.Client.Tests -c Release --no-build --results-directory ./test-results -- --report-trx --report-trx-filename client-tests.trx + continue-on-error: true + + - name: Test RemoteViewer.Server.Tests + run: dotnet test --project tests/RemoteViewer.Server.Tests -c Release --no-build --results-directory ./test-results -- --report-trx --report-trx-filename server-tests.trx + continue-on-error: true + + - name: Test RemoteViewer.IntegrationTests + run: dotnet test --project tests/RemoteViewer.IntegrationTests -c Release --no-build --results-directory ./test-results -- --report-trx --report-trx-filename integration-tests.trx + continue-on-error: true - name: Upload test results uses: actions/upload-artifact@v4 @@ -40,9 +54,10 @@ jobs: path: ./test-results/**/*.trx - name: Publish test results - uses: dorny/test-reporter@v1 + uses: dorny/test-reporter@v2.5.0 if: always() with: name: Test Results path: ./test-results/**/*.trx reporter: dotnet-trx + fail-on-error: 'false'