diff --git a/.github/elixir.json b/.github/elixir.json new file mode 100644 index 0000000..4d1d0d1 --- /dev/null +++ b/.github/elixir.json @@ -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 + } + ] + } + ] +} diff --git a/src/setup-elixir.js b/src/setup-elixir.js index 247ccae..b25fdd5 100644 --- a/src/setup-elixir.js +++ b/src/setup-elixir.js @@ -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() {