16 Commits

Author SHA1 Message Date
Jonathan Clem
1a3c64091d Update version in README 2019-12-02 14:18:45 -05:00
Jonathan Clem
5ce583baa3 Merge pull request #11 from mijailr/error-matchers
Add error matchers for known warning or error strings
2019-12-02 14:16:32 -05:00
Mijail Rondon
c1ab867da9 Add error and warning matchers 2019-11-27 13:46:21 -05:00
Mijail Rondon
dfb9431cd0 Problem matcher elixir 2019-11-26 23:32:07 -05:00
Jonathan Clem
ca25180aa6 Update Elixir versions
This includes 1.9.4 _preemptively_
2019-11-05 12:16:23 -05:00
Jonathan Clem
289ac7af73 Add more Erlang OTP versions in 22.1.x 2019-11-05 12:15:23 -05:00
Jonathan Clem
721ee4860a Merge pull request #5 from aai/erlang
Add Erlang 22.1 to versions
2019-11-05 12:14:16 -05:00
Nathan Youngman
788bbdde77 Add Erlang 22.1 to versions 2019-10-03 15:48:39 -06:00
Jonathan Clem
5731c77a8e Update README.md 2019-08-28 23:00:30 -04:00
Jonathan Clem
b52a81afa4 Add Phoenix example to README 2019-08-28 17:59:49 -04:00
Jonathan Clem
78abf8c5c2 Merge pull request #1 from actions/licensed-workflow
Add a licensed workflow
2019-08-28 17:43:18 -04:00
Jonathan Clem
cf30cd9eeb Curl to file 2019-08-28 17:41:54 -04:00
Jonathan Clem
d8384307ce Use Licensed without Ruby 2019-08-28 17:35:24 -04:00
Jonathan Clem
7242b20bce Merge branch 'master' into licensed-workflow 2019-08-28 17:31:35 -04:00
Jonathan Clem
8b75b3d52e Use Ruby 2.x 2019-08-28 17:27:18 -04:00
Jonathan Clem
c8c376ebbb Add a licensed workflow 2019-08-28 17:25:36 -04:00
6 changed files with 96 additions and 2 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
}
]
}
]
}

19
.github/workflows/licensed.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: Licensed
on:
push: {branches: master}
pull_request: {branches: master}
repository_dispatch:
jobs:
test:
runs-on: ubuntu-latest
name: Check licenses
steps:
- uses: actions/checkout@v1.0.0
- run: |-
cd /tmp
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.3.2/licensed-2.3.2-linux-x64.tar.gz
sudo tar -xzf licensed.tar.gz
sudo mv licensed /usr/local/bin/licensed
- run: licensed status

View File

@@ -1,6 +1,7 @@
# setup-elixir
[![](https://github.com/actions/setup-elixir/workflows/Test/badge.svg)](https://github.com/actions/setup-elixir/actions)
[![](https://github.com/actions/setup-elixir/workflows/Licensed/badge.svg)](https://github.com/actions/setup-elixir/actions)
This actions sets up an Elixir environment for use in Actions by:
@@ -28,7 +29,8 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-elixir@v1.0.0
- uses: actions/checkout@v1.0.0
- uses: actions/setup-elixir@v1.1.0
with:
otp-version: 22.x
elixir-version: 1.9.x
@@ -50,7 +52,8 @@ jobs:
otp: [20.x, 21.x, 22.x]
elixir: [1.8.x, 1.9.x]
steps:
- uses: actions/setup-elixir@v1.0.0
- uses: actions/checkout@v1.0.0
- uses: actions/setup-elixir@v1.1.0
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
@@ -58,6 +61,35 @@ jobs:
- run: mix test
```
### Phoenix example
```yaml
on: push
jobs:
test:
runs-on: ubuntu-latest
services:
db:
image: postgres:11
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v1.0.0
- uses: actions/setup-elixir@v1.1.0
with:
otp-version: 22.x
elixir-version: 1.9.x
- run: mix deps.get
- run: mix test
```
## License
The scripts and documentation in this project are released under the [MIT license](LICENSE.md).

View File

@@ -1,3 +1,6 @@
1.9.4
1.9.3
1.9.2
1.9.1
1.9.0
1.8.2

View File

@@ -1,3 +1,9 @@
22.1.5
22.1.4
22.1.3
22.1.2
22.1.1
22.1
22.0.7
22.0.6
22.0.5

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() {