comparison .github/workflows/make.yaml @ 32070:bc46d7c2768f stable

GitHub-CI (macos): Fail job if test suite doesn't pass. * .github/workflow/make.yaml (macos): Fail job for any failure or regression in the test suite (instead of just emitting a warning).
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 02 May 2023 11:38:24 +0200
parents a46c30311908
children 31a68f3ced07 6f9f2e2c2ae8
comparison
equal deleted inserted replaced
32069:217a35f2a589 32070:bc46d7c2768f
340 run: cat ./.build/test/fntests.log 340 run: cat ./.build/test/fntests.log
341 341
342 - name: analyze test suite results 342 - name: analyze test suite results
343 # Make sure the test summary lists 0 "FAIL"s and no "REGRESSION" 343 # Make sure the test summary lists 0 "FAIL"s and no "REGRESSION"
344 run: | 344 run: |
345 [ -n "$(grep -e "FAIL\s*0" ./test-suite.log)" ] || echo "::warning::At least one test failed" 345 [ -n "$(grep -e "FAIL\s*0" ./test-suite.log)" ] || exit 1
346 [ -z "$(grep -e "REGRESSION" ./test-suite.log)" ] || echo "::warning::At least one regression in test suite" 346 [ -z "$(grep -e "REGRESSION" ./test-suite.log)" ] || exit 1
347 echo Finished analyzing test suite results. 347 echo Finished analyzing test suite results.
348 348
349 - name: test history file creation 349 - name: test history file creation
350 # see bug #62365 350 # see bug #62365
351 # Pipe to an interactive session to trigger appending the command to 351 # Pipe to an interactive session to trigger appending the command to