From a1baceff703478d072be466e3edbe29cea906ec0 Mon Sep 17 00:00:00 2001 From: Nish26 Date: Thu, 25 Jan 2024 20:49:01 +0530 Subject: [PATCH] Upload test cases even if tests fail --- .github/workflows/identity-test-docker-image-with-mongo.yaml | 1 + .github/workflows/identity-test-docker-image-with-postgres.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/identity-test-docker-image-with-mongo.yaml b/.github/workflows/identity-test-docker-image-with-mongo.yaml index 3d4b218..3f0da02 100644 --- a/.github/workflows/identity-test-docker-image-with-mongo.yaml +++ b/.github/workflows/identity-test-docker-image-with-mongo.yaml @@ -46,6 +46,7 @@ jobs: run: dotnet test --logger "trx;" src/Pixel.Identity.UI.Tests/Pixel.Identity.UI.Tests.csproj - name: Upload test results uses: actions/upload-artifact@v3 + if: ${{ always() }} with: name: pixel-identity-mongo-automation-test-results-${{ matrix.os }} path: src/Pixel.Identity.UI.Tests/TestResults/*.trx \ No newline at end of file diff --git a/.github/workflows/identity-test-docker-image-with-postgres.yaml b/.github/workflows/identity-test-docker-image-with-postgres.yaml index e82d960..e9d3f28 100644 --- a/.github/workflows/identity-test-docker-image-with-postgres.yaml +++ b/.github/workflows/identity-test-docker-image-with-postgres.yaml @@ -52,6 +52,7 @@ jobs: run: dotnet test --logger "trx;" src/Pixel.Identity.UI.Tests/Pixel.Identity.UI.Tests.csproj - name: Upload test results uses: actions/upload-artifact@v3 + if: ${{ always() }} with: name: pixel-identity-postgres-automation-test-results-${{ matrix.os }} path: src/Pixel.Identity.UI.Tests/TestResults/*.trx