Merge pull request #11 from mijailr/error-matchers

5ce583b · Jonathan Clem · 2019-12-02 19:16

2 files +34 -0
Message
{commit_body(@commit)}

Files changed

added .github/elixir.json
+31 −0
@@ -0,0 +1,31 @@
1 +{
2 + "problemMatcher": [
3 + {
4 + "owner": "elixir",
5 + "pattern": [
6 + {
7 + "regexp": "^(\\*\\* \\(.*\\) )?((.:)?[^:]*):(\\d+)(:(\\d+))?: (.*)$",
8 + "file": 2,
9 + "line": 4,
10 + "column": 6,
11 + "message": 7
12 + }
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 + ]
29 + }
30 + ]
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: ca25180 c1ab867