diff options
author | Cristian Adam <cristian.adam@qt.io> | 2023-10-13 15:34:28 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2023-10-13 16:37:25 +0000 |
commit | 184509228a63acd605ca409f137f4c7784c03b57 (patch) | |
tree | b502c68a6493b78e690406cd39a62467e7553b41 | |
parent | 52fa2c369ef8351ceb201d452cf1476b9d2fbce6 (diff) |
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>
-rw-r--r-- | .github/workflows/build_cmake.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 3b2c1755b2..416223c75a 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 |