Add error and warning matchers

c1ab867 · Mijail Rondon · 2019-11-27 18:46

2 files +18 -0

Files changed

modified .github/elixir.json
+15 −0
@@ -11,6 +11,21 @@
11 11 "message": 7
12 12 }
13 13 ]
14 + },
15 + {
16 + "owner": "elixir-warning",
17 + "pattern": [
18 + {
19 + "regexp": "^(warning: (.*))$",
20 + "message": 2
21 + },
22 + {
23 + "regexp": "^( )((.:)?[^:]*):(\\d+)(:(\\d+))?$",
24 + "file": 2,
25 + "line": 4,
26 + "column": 6
27 + }
28 + ]
14 29 }
15 30 ]
16 31 }
modified src/setup-elixir.js
+3 −0
@@ -38,6 +38,9 @@ async function main() {
38 38
39 39 if (installRebar) await exec('mix local.rebar --force')
40 40 if (installHex) await exec('mix local.hex --force')
41 +
42 + const matchersPath = path.join(__dirname, '..', '.github');
43 + console.log(`##[add-matcher]${path.join(matchersPath, 'elixir.json')}`);
41 44 }
42 45
43 46 function checkPlatform() {

Parents: dfb9431