forked from cataclysmbnteam/Cataclysm-BN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add problem matchers (cataclysmbnteam#2660)
* feat: display multi-line error messages with github action Co-authored-by: Qrox <qrox@sina.com> * Add debugmsg problem matcher This problem matcher is intended to highlight errors coming from hitting debugmsg in CI. Co-authored-by: John Bytheway <jbytheway@gmail.com> * Make path appear in __FILE__ for tests The DebugLog printing of filenames relies on __FILE__. This is based on the filename passed to the compiler. For tests, that lacked a directory name. So, __FILE__ lacked the context for the filename, which meant the GitHub problem matcher couldn't find the file causing the error. Add '../tests/' to the filename passed to the compiler to work around this. Co-authored-by: John Bytheway <jbytheway@gmail.com> * Add Catch2 problem matcher This is intended to highlight test failures in the Catch2 tests as GitHub annotations. Co-authored-by: John Bytheway <jbytheway@gmail.com> * ci: add msvc problem matchers uses https://github.com/marketplace/actions/msvc-problem-matcher * style: false positive for `\r` --------- Co-authored-by: Qrox <qrox@sina.com> Co-authored-by: John Bytheway <jbytheway@gmail.com>
- Loading branch information
1 parent
3389862
commit b32f622
Showing
12 changed files
with
222 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "cata-catch2", | ||
"pattern": [ | ||
{ | ||
"regexp": "^(?:.\\[[0-9;]+m)*(?:\\.\\./)*([^:]*):(\\d+): .*FAILED:.*$", | ||
"file": 1, | ||
"line": 2 | ||
}, | ||
{ | ||
"regexp": "^(?:.\\[[0-9;]+m)* (.+)$", | ||
"code": 1 | ||
}, | ||
{ | ||
"regexp": "^(?:.\\[[0-9;]+m)*(with expansion|due to a fatal error condition):$" | ||
}, | ||
{ | ||
"regexp": "^(?:.\\[[0-9;]+m)* (.+)$", | ||
"message": 1 | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "cata-clang", | ||
"pattern": [ | ||
{ | ||
"regexp": "^(?:[0-9.:]+|\\(continued from above\\)) (ERROR) : (?:(?:\\.\\./)*)([^:]*):(\\d+) (.+)$", | ||
"severity": 1, | ||
"file": 2, | ||
"line": 3, | ||
"message": 4 | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters