mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2025-01-18 09:31:57 +01:00
Adds problem-matcher (#20)
* Adds problem-matcher * Fix issue * match as group 1 * use message * Limit output * remove testfile
This commit is contained in:
parent
2f2aa0d97f
commit
637bb438ec
22
.github/problem-matcher.json
vendored
Normal file
22
.github/problem-matcher.json
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"problemMatcher": [
|
||||
{
|
||||
"owner": "shellcheck",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^In\\s(.+)\\sline\\s(\\d+):$",
|
||||
"file": 1,
|
||||
"line": 2
|
||||
},
|
||||
{
|
||||
"regexp": ".*"
|
||||
},
|
||||
{
|
||||
"regexp": "(SC\\d+):\\s(.+)$",
|
||||
"code": 1,
|
||||
"message": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -1,5 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
## Enable problem matcher
|
||||
echo "::add-matcher::.github/problem-matcher.json"
|
||||
|
||||
cd "$GITHUB_WORKSPACE" || exit 1
|
||||
|
||||
declare statuscode
|
||||
|
@ -1,3 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo $test
|
||||
echo $test $test
|
||||
|
||||
echo $test2
|
Loading…
x
Reference in New Issue
Block a user