diff --git a/.github/workflows/main_kooktime.yml b/.github/workflows/main_kooktime.yml index 990e3ba..e5a9220 100644 --- a/.github/workflows/main_kooktime.yml +++ b/.github/workflows/main_kooktime.yml @@ -14,6 +14,7 @@ on: jobs: test: runs-on: ubuntu-latest + if: github.event_name == 'pull_request' steps: - name: "Checkout Github Action" @@ -30,9 +31,16 @@ jobs: - name: Test run: scripts/test + - name: Test Report + uses: dorny/test-reporter@v1 + if: always() + with: + name: .NET Tests + path: src/CookTimeTests/TestResults/*.trx + reporter: dotnet-trx + deploy: runs-on: ubuntu-latest - needs: test if: github.event_name == 'push' && github.ref == 'refs/heads/main' steps: diff --git a/scripts/test b/scripts/test index 109bac1..4a404d5 100755 --- a/scripts/test +++ b/scripts/test @@ -24,4 +24,5 @@ echo "API is healthy!" echo "" echo "Running tests..." cd "$(dirname "$0")/../src/CookTimeTests" -dotnet test --verbosity normal +dotnet build -v minimal +dotnet test --verbosity normal --no-build --logger "trx;LogFileName=test-results.trx" -- RunConfiguration.DisableParallelization=true