From dfb9431cd0f69c78308619afb86cfefb0b5003bb Mon Sep 17 00:00:00 2001 From: Mijail Rondon Date: Tue, 26 Nov 2019 23:32:07 -0500 Subject: [PATCH 1/3] Problem matcher elixir --- .github/elixir.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/elixir.json diff --git a/.github/elixir.json b/.github/elixir.json new file mode 100644 index 0000000..84dd88c --- /dev/null +++ b/.github/elixir.json @@ -0,0 +1,16 @@ +{ + "problemMatcher": [ + { + "owner": "elixir", + "pattern": [ + { + "regexp": "^(\\*\\* \\(.*\\) )?((.:)?[^:]*):(\\d+)(:(\\d+))?: (.*)$", + "file": 2, + "line": 4, + "column": 6, + "message": 7 + } + ] + } + ] +} From c1ab867da977b9183d98a11f63d9338eef5ad985 Mon Sep 17 00:00:00 2001 From: Mijail Rondon Date: Tue, 26 Nov 2019 23:38:31 -0500 Subject: [PATCH 2/3] Add error and warning matchers --- .github/elixir.json | 15 +++++++++++++++ src/setup-elixir.js | 3 +++ 2 files changed, 18 insertions(+) diff --git a/.github/elixir.json b/.github/elixir.json index 84dd88c..4d1d0d1 100644 --- a/.github/elixir.json +++ b/.github/elixir.json @@ -11,6 +11,21 @@ "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() { From 1a3c64091d474cbde0480f3d6b9be27ac85a1fb4 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Mon, 2 Dec 2019 14:18:45 -0500 Subject: [PATCH 3/3] Update version in README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8630f37..f3bcc6e 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1.0.0 - - uses: actions/setup-elixir@v1.0.0 + - uses: actions/setup-elixir@v1.1.0 with: otp-version: 22.x elixir-version: 1.9.x @@ -53,7 +53,7 @@ jobs: elixir: [1.8.x, 1.9.x] steps: - uses: actions/checkout@v1.0.0 - - uses: actions/setup-elixir@v1.0.0 + - uses: actions/setup-elixir@v1.1.0 with: otp-version: ${{matrix.otp}} elixir-version: ${{matrix.elixir}} @@ -82,7 +82,7 @@ jobs: steps: - uses: actions/checkout@v1.0.0 - - uses: actions/setup-elixir@v1.0.0 + - uses: actions/setup-elixir@v1.1.0 with: otp-version: 22.x elixir-version: 1.9.x