From d4fe6402cd96ea555244f39336b7076de174f558 Mon Sep 17 00:00:00 2001 From: Gustavo Hidalgo Date: Sun, 1 Feb 2026 16:35:14 -0500 Subject: [PATCH 1/3] Only make tests mandatory for PRs --- .github/workflows/main_kooktime.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main_kooktime.yml b/.github/workflows/main_kooktime.yml index 990e3ba..0eafd49 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" @@ -32,7 +33,6 @@ jobs: deploy: runs-on: ubuntu-latest - needs: test if: github.event_name == 'push' && github.ref == 'refs/heads/main' steps: From c36f7cbe83f41e1d3336abe7ac37512782749965 Mon Sep 17 00:00:00 2001 From: Gustavo Hidalgo Date: Sun, 1 Feb 2026 16:39:26 -0500 Subject: [PATCH 2/3] Minimize build output --- scripts/test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/test b/scripts/test index 109bac1..388b8a1 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" From d7bccabb9100c84451d43d5621a8f151655b168a Mon Sep 17 00:00:00 2001 From: Gustavo Hidalgo Date: Sun, 1 Feb 2026 16:43:39 -0500 Subject: [PATCH 3/3] Run tests sequentially and report the trx --- .github/workflows/main_kooktime.yml | 8 ++++++++ scripts/test | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main_kooktime.yml b/.github/workflows/main_kooktime.yml index 0eafd49..e5a9220 100644 --- a/.github/workflows/main_kooktime.yml +++ b/.github/workflows/main_kooktime.yml @@ -31,6 +31,14 @@ 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 if: github.event_name == 'push' && github.ref == 'refs/heads/main' diff --git a/scripts/test b/scripts/test index 388b8a1..4a404d5 100755 --- a/scripts/test +++ b/scripts/test @@ -25,4 +25,4 @@ echo "" echo "Running tests..." cd "$(dirname "$0")/../src/CookTimeTests" dotnet build -v minimal -dotnet test --verbosity normal --no-build --logger "trx;LogFileName=test-results.trx" +dotnet test --verbosity normal --no-build --logger "trx;LogFileName=test-results.trx" -- RunConfiguration.DisableParallelization=true