From c9cae1a079697afd6d0f03230f95d1a1b16de1d1 Mon Sep 17 00:00:00 2001 From: Egil Hansen Date: Tue, 24 Sep 2024 11:47:42 +0000 Subject: [PATCH] ci: collect test reports --- .github/workflows/ci.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06428e4ca..f81625669 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -137,18 +137,16 @@ jobs: 9.0.x - name: ๐Ÿงช Run unit tests - run: dotnet test -c release -p:VSTestUseMSBuildOutput=false --verbosity normal --logger trx --results-directory TestResults --collect "XPlat Code Coverage" + run: dotnet test -c release -p:VSTestUseMSBuildOutput=false --logger "trx" - - name: Test Reports - uses: bibipkins/dotnet-test-reporter@v1.4.1 - if: always() + - name: Test Report + uses: dorny/test-reporter@v1 + if: success() || failure() with: - github-token: ${{ secrets.GITHUB_TOKEN }} - comment-title: "Unit Test Results" - results-path: ./TestResults/*.trx - coverage-path: ./TestResults/**/coverage.cobertura.xml - coverage-type: cobertura - coverage-threshold: 0.00 + name: Tests + reporter: dotnet-trx + list-tests: failed + path: '**/*.trx' - name: ๐Ÿ“› Upload hang- and crash-dumps on test failure if: failure()