forked from qt-creator/qt-creator
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:
4
.github/workflows/build_cmake.yml
vendored
4
.github/workflows/build_cmake.yml
vendored
@@ -663,8 +663,8 @@ jobs:
|
|||||||
if (NOT result EQUAL 0)
|
if (NOT result EQUAL 0)
|
||||||
string(REGEX MATCH "[0-9]+% tests.*[0-9.]+ sec.*$" test_results "${output}")
|
string(REGEX MATCH "[0-9]+% tests.*[0-9.]+ sec.*$" test_results "${output}")
|
||||||
string(REPLACE "\n" "%0A" test_results "${test_results}")
|
string(REPLACE "\n" "%0A" test_results "${test_results}")
|
||||||
# Do not fail on ctest failure
|
message("::error::${test_results}")
|
||||||
message("::warning::${test_results}")
|
message(FATAL_ERROR "Tests failed")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
|
Reference in New Issue
Block a user