18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-19 22:44:59 +01:00

ci: fail the coverage report step when gcovr fails

The step pipes gcovr into tee, and the default shell of a run step has no pipefail: an error of gcovr after it printed the totals would have left the step green with an incomplete report.
This commit is contained in:
jerrrrycho
2026-11-11 11:03:09 +01:00
parent 4533fafd93
commit c008d0cdca

View File

@@ -94,6 +94,8 @@ jobs:
# betterRenderer/ is left out for its thirdparty/yaml-cpp, which every target of the game links and so builds here
- name: Coverage report
run: |
# a failure of gcovr fails the step, though its output goes through tee
set -o pipefail
mkdir -p coverage-report/html
gcovr --root . build \
--exclude 'ref/' --exclude 'imgui/' --exclude 'stb/' --exclude 'betterRenderer/' \