diff options
| author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2020-04-11 00:18:13 +0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-04-10 10:30:40 -0700 |
| commit | 676eb0c1ce0d380478eb16bdc5a3f2a7bc01c1d2 (patch) | |
| tree | 8c650db55f66c829314b009bae7c3def4002d169 /ci/lib.sh | |
| parent | 662f9cf1548cf069cb819e9e95f224657015fcf9 (diff) | |
| download | git-676eb0c1ce0d380478eb16bdc5a3f2a7bc01c1d2.tar.xz | |
ci: add a problem matcher for GitHub Actions
With this patch, test failures will be annotated with a helpful,
clickable message in GitHub Actions. For details, see
https://github.com/actions/toolkit/blob/master/docs/problem-matchers.md
Note: we need to set `TEST_SHELL_PATH` to Bash so that the problem
matcher is fed a file and line number for each test failure.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ci/lib.sh')
| -rwxr-xr-x | ci/lib.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -157,6 +157,11 @@ then MAKEFLAGS="$MAKEFLAGS --jobs=10" test windows != "$CI_OS_NAME" || GIT_TEST_OPTS="--no-chain-lint --no-bin-wrappers $GIT_TEST_OPTS" + + # https://github.com/actions/toolkit/blob/master/docs/commands.md#problem-matchers + echo "::add-matcher::ci/git-problem-matcher.json" + test linux-musl = "$jobname" || + MAKEFLAGS="$MAKEFLAGS TEST_SHELL_PATH=/bin/sh" else echo "Could not identify CI type" >&2 env >&2 |
