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 <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Cristian Adam
2023-10-13 15:34:28 +02:00
parent 52fa2c369e
commit 184509228a

View File

@@ -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