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:
2
.github/workflows/coverage.yml
vendored
2
.github/workflows/coverage.yml
vendored
@@ -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/' \
|
||||
|
||||
Reference in New Issue
Block a user