From 184509228a63acd605ca409f137f4c7784c03b57 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Fri, 13 Oct 2023 15:34:28 +0200 Subject: [PATCH] GitHub: Mark build as failed if the tests fail We have now 100% test pass rate, so we want to keep it this way. Change-Id: Ie7dc5fa24921a1b32eff09470cc77ba01e65939a Reviewed-by: Alessandro Portale Reviewed-by: --- .github/workflows/build_cmake.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 3b2c1755b2f..416223c75af 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -663,8 +663,8 @@ jobs: if (NOT result EQUAL 0) string(REGEX MATCH "[0-9]+% tests.*[0-9.]+ sec.*$" test_results "${output}") string(REPLACE "\n" "%0A" test_results "${test_results}") - # Do not fail on ctest failure - message("::warning::${test_results}") + message("::error::${test_results}") + message(FATAL_ERROR "Tests failed") endif() - name: Upload