summaryrefslogtreecommitdiff
path: root/ci/git-problem-matcher.json
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2020-04-11 00:18:13 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-04-10 10:30:40 -0700
commit676eb0c1ce0d380478eb16bdc5a3f2a7bc01c1d2 (patch)
tree8c650db55f66c829314b009bae7c3def4002d169 /ci/git-problem-matcher.json
parenttests: when run in Bash, annotate test failures with file name/line number (diff)
downloadtgif-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/git-problem-matcher.json')
-rw-r--r--ci/git-problem-matcher.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/ci/git-problem-matcher.json b/ci/git-problem-matcher.json
new file mode 100644
index 0000000000..506dfbd97f
--- /dev/null
+++ b/ci/git-problem-matcher.json
@@ -0,0 +1,16 @@
+{
+ "problemMatcher": [
+ {
+ "owner": "git-test-suite",
+ "pattern": [
+ {
+ "regexp": "^([^ :]+\\.sh):(\\d+): (error|warning|info):\\s+(.*)$",
+ "file": 1,
+ "line": 2,
+ "severity": 3,
+ "message": 4
+ }
+ ]
+ }
+ ]
+}