ci/run-build-and-tests: add some structure to the GitHub workflow output

The current output of Git's GitHub workflow can be quite confusing,
especially for contributors new to the project.

To make it more helpful, let's introduce some collapsible grouping.
Initially, readers will see the high-level view of what actually
happened (did the build fail, or the test suite?). To drill down, the
respective group can be expanded.

Note: sadly, workflow output currently cannot contain any nested groups
(see https://github.com/actions/runner/issues/802 for details),
therefore we take pains to ensure to end any previous group before
starting a new one.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Johannes Schindelin
2022-05-21 22:18:50 +00:00
committed by Junio C Hamano
parent 08dccc8fc1
commit dab73aebd8
3 changed files with 52 additions and 10 deletions

View File

@@ -45,10 +45,10 @@ pedantic)
;;
esac
make
group Build make
if test -n "$run_tests"
then
make test ||
group "Run tests" make test ||
handle_failed_tests
fi
check_unignored_build_artifacts