diff --git a/.github/workflows/CI_Backend.yml b/.github/workflows/CI_Backend.yml index f2c7990..507e9e8 100644 --- a/.github/workflows/CI_Backend.yml +++ b/.github/workflows/CI_Backend.yml @@ -4,6 +4,9 @@ on: pull_request: branches: - dev + push: + branches: + - main jobs: build-and-test: @@ -25,4 +28,13 @@ jobs: run: dotnet build --configuration Release --no-restore - name: Run tests - run: dotnet test --no-build --verbosity normal + run: dotnet test --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx" || true + + - name: Test Report + uses: dorny/test-reporter@v1 + if: always() + with: + name: DotNET Tests + path: "**/test-results.trx" + reporter: dotnet-trx + fail-on-error: true