Merge pull request #11 from mijailr/error-matchers

Add error matchers for known warning or error strings
This commit is contained in:
Jonathan Clem
2019-12-02 14:16:32 -05:00
committed by GitHub
2 changed files with 34 additions and 0 deletions

31
.github/elixir.json vendored Normal file
View File

@@ -0,0 +1,31 @@
{
"problemMatcher": [
{
"owner": "elixir",
"pattern": [
{
"regexp": "^(\\*\\* \\(.*\\) )?((.:)?[^:]*):(\\d+)(:(\\d+))?: (.*)$",
"file": 2,
"line": 4,
"column": 6,
"message": 7
}
]
},
{
"owner": "elixir-warning",
"pattern": [
{
"regexp": "^(warning: (.*))$",
"message": 2
},
{
"regexp": "^( )((.:)?[^:]*):(\\d+)(:(\\d+))?$",
"file": 2,
"line": 4,
"column": 6
}
]
}
]
}

View File

@@ -38,6 +38,9 @@ async function main() {
if (installRebar) await exec('mix local.rebar --force')
if (installHex) await exec('mix local.hex --force')
const matchersPath = path.join(__dirname, '..', '.github');
console.log(`##[add-matcher]${path.join(matchersPath, 'elixir.json')}`);
}
function checkPlatform() {