From ea9e30c35f173b72f6bfacfd431730af1bf44ff1 Mon Sep 17 00:00:00 2001 From: Matt Bishop Date: Tue, 10 Jan 2023 10:58:19 -0500 Subject: [PATCH] Upload and process test results as an artifact and report (#2555) --- .github/workflows/build.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc955de4b..82b37aa9f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,13 +73,22 @@ jobs: shell: pwsh - name: Test OSS solution - run: dotnet test ./test --configuration Debug --no-build + run: dotnet test ./test --configuration Debug --no-build --logger "trx;LogFileName=oss-test-results.trx" || true shell: pwsh - name: Test Bitwarden solution - run: dotnet test ./bitwarden_license/test --configuration Debug --no-build + run: dotnet test ./bitwarden_license/test --configuration Debug --no-build --logger "trx;LogFileName=bw-test-results.trx" || true shell: pwsh + - name: Report test results + uses: dorny/test-reporter@c9b3d0e2bd2a4e96aaf424dbaa31c46b42318226 + if: always() + with: + name: Test Results + path: "**/*-test-results.trx" + reporter: dotnet-trx + fail-on-error: true + build-artifacts: name: Build artifacts runs-on: ubuntu-22.04