From 52d991335a3018666e69ebfbb4428e0365bc0415 Mon Sep 17 00:00:00 2001 From: Ferdinando Papale <4850119+papafe@users.noreply.github.com> Date: Fri, 3 May 2024 10:58:27 +0200 Subject: [PATCH] Fail action if tests aren't passing --- .github/templates/test.lib.yml | 2 +- .github/workflows/test-android.yml | 4 ++-- .github/workflows/test-code-coverage.yml | 2 +- .github/workflows/test-ios.yml | 4 ++-- .github/workflows/test-macos.yml | 4 ++-- .github/workflows/test-net-core.yml | 2 +- .github/workflows/test-net-framework.yml | 2 +- .github/workflows/test-source-generation.yml | 2 +- .github/workflows/test-tvos.yml | 2 +- .github/workflows/test-unity.yml | 4 ++-- .github/workflows/test-uwp-managed.yml | 2 +- .github/workflows/test-weaver.yml | 2 +- .github/workflows/test-woven-classes.yml | 2 +- 13 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/templates/test.lib.yml b/.github/templates/test.lib.yml index 57690ae568..87a3723dc5 100644 --- a/.github/templates/test.lib.yml +++ b/.github/templates/test.lib.yml @@ -23,7 +23,7 @@ list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true #@ end --- #@ def testDefinition(additionalSecrets = [], additionalInputs = []): diff --git a/.github/workflows/test-android.yml b/.github/workflows/test-android.yml index 8f5457f0c8..879350e3a1 100755 --- a/.github/workflows/test-android.yml +++ b/.github/workflows/test-android.yml @@ -85,7 +85,7 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true test-maui: runs-on: windows-latest name: Maui.Android @@ -150,4 +150,4 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true diff --git a/.github/workflows/test-code-coverage.yml b/.github/workflows/test-code-coverage.yml index b6570ac016..de8242ef77 100755 --- a/.github/workflows/test-code-coverage.yml +++ b/.github/workflows/test-code-coverage.yml @@ -174,4 +174,4 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true diff --git a/.github/workflows/test-ios.yml b/.github/workflows/test-ios.yml index 8548ee23d8..1154de38ad 100755 --- a/.github/workflows/test-ios.yml +++ b/.github/workflows/test-ios.yml @@ -64,7 +64,7 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true test-maui: runs-on: macos-13 name: Maui.iOS @@ -121,4 +121,4 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index 079ee24b69..80f39ada4d 100755 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -59,7 +59,7 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true test-maui: runs-on: macos-13 name: Maui.MacCatalyst @@ -111,4 +111,4 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true diff --git a/.github/workflows/test-net-core.yml b/.github/workflows/test-net-core.yml index cd7da6b802..b7b81910f3 100755 --- a/.github/workflows/test-net-core.yml +++ b/.github/workflows/test-net-core.yml @@ -91,4 +91,4 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true diff --git a/.github/workflows/test-net-framework.yml b/.github/workflows/test-net-framework.yml index 6efd8f8e08..3402206a13 100755 --- a/.github/workflows/test-net-framework.yml +++ b/.github/workflows/test-net-framework.yml @@ -59,4 +59,4 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true diff --git a/.github/workflows/test-source-generation.yml b/.github/workflows/test-source-generation.yml index 6a612b0aa8..ac280110a1 100644 --- a/.github/workflows/test-source-generation.yml +++ b/.github/workflows/test-source-generation.yml @@ -40,4 +40,4 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true diff --git a/.github/workflows/test-tvos.yml b/.github/workflows/test-tvos.yml index 394f72ef81..396f232543 100755 --- a/.github/workflows/test-tvos.yml +++ b/.github/workflows/test-tvos.yml @@ -59,4 +59,4 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true diff --git a/.github/workflows/test-unity.yml b/.github/workflows/test-unity.yml index d429b63a0f..8a41017505 100755 --- a/.github/workflows/test-unity.yml +++ b/.github/workflows/test-unity.yml @@ -96,7 +96,7 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true run-tests-windows: runs-on: windows-latest name: Unity Windows @@ -134,4 +134,4 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true diff --git a/.github/workflows/test-uwp-managed.yml b/.github/workflows/test-uwp-managed.yml index 69ad6ad743..18cd63991a 100755 --- a/.github/workflows/test-uwp-managed.yml +++ b/.github/workflows/test-uwp-managed.yml @@ -71,4 +71,4 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true diff --git a/.github/workflows/test-weaver.yml b/.github/workflows/test-weaver.yml index ef87d13085..e14e5aeca5 100755 --- a/.github/workflows/test-weaver.yml +++ b/.github/workflows/test-weaver.yml @@ -56,4 +56,4 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true diff --git a/.github/workflows/test-woven-classes.yml b/.github/workflows/test-woven-classes.yml index abf4eb74bf..a81b28827d 100644 --- a/.github/workflows/test-woven-classes.yml +++ b/.github/workflows/test-woven-classes.yml @@ -54,4 +54,4 @@ jobs: list-suites: failed list-tests: failed path-replace-backslashes: true - fail-on-error: false + fail-on-error: true