Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a3c64091d | ||
|
|
5ce583baa3 | ||
|
|
c1ab867da9 | ||
|
|
dfb9431cd0 | ||
|
|
ca25180aa6 | ||
|
|
289ac7af73 | ||
|
|
721ee4860a | ||
|
|
788bbdde77 | ||
|
|
5731c77a8e | ||
|
|
b52a81afa4 | ||
|
|
78abf8c5c2 | ||
|
|
cf30cd9eeb | ||
|
|
d8384307ce | ||
|
|
7242b20bce | ||
|
|
8b75b3d52e | ||
|
|
c8c376ebbb |
31
.github/elixir.json
vendored
Normal file
31
.github/elixir.json
vendored
Normal 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
19
.github/workflows/licensed.yml
vendored
Normal 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
|
||||||
36
README.md
36
README.md
@@ -1,6 +1,7 @@
|
|||||||
# setup-elixir
|
# setup-elixir
|
||||||
|
|
||||||
[](https://github.com/actions/setup-elixir/actions)
|
[](https://github.com/actions/setup-elixir/actions)
|
||||||
|
[](https://github.com/actions/setup-elixir/actions)
|
||||||
|
|
||||||
This actions sets up an Elixir environment for use in Actions by:
|
This actions sets up an Elixir environment for use in Actions by:
|
||||||
|
|
||||||
@@ -28,7 +29,8 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-elixir@v1.0.0
|
- uses: actions/checkout@v1.0.0
|
||||||
|
- uses: actions/setup-elixir@v1.1.0
|
||||||
with:
|
with:
|
||||||
otp-version: 22.x
|
otp-version: 22.x
|
||||||
elixir-version: 1.9.x
|
elixir-version: 1.9.x
|
||||||
@@ -50,7 +52,8 @@ jobs:
|
|||||||
otp: [20.x, 21.x, 22.x]
|
otp: [20.x, 21.x, 22.x]
|
||||||
elixir: [1.8.x, 1.9.x]
|
elixir: [1.8.x, 1.9.x]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-elixir@v1.0.0
|
- uses: actions/checkout@v1.0.0
|
||||||
|
- uses: actions/setup-elixir@v1.1.0
|
||||||
with:
|
with:
|
||||||
otp-version: ${{matrix.otp}}
|
otp-version: ${{matrix.otp}}
|
||||||
elixir-version: ${{matrix.elixir}}
|
elixir-version: ${{matrix.elixir}}
|
||||||
@@ -58,6 +61,35 @@ jobs:
|
|||||||
- run: mix test
|
- 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
|
## License
|
||||||
|
|
||||||
The scripts and documentation in this project are released under the [MIT license](LICENSE.md).
|
The scripts and documentation in this project are released under the [MIT license](LICENSE.md).
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
1.9.4
|
||||||
|
1.9.3
|
||||||
|
1.9.2
|
||||||
1.9.1
|
1.9.1
|
||||||
1.9.0
|
1.9.0
|
||||||
1.8.2
|
1.8.2
|
||||||
|
|||||||
@@ -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.7
|
||||||
22.0.6
|
22.0.6
|
||||||
22.0.5
|
22.0.5
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ async function main() {
|
|||||||
|
|
||||||
if (installRebar) await exec('mix local.rebar --force')
|
if (installRebar) await exec('mix local.rebar --force')
|
||||||
if (installHex) await exec('mix local.hex --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() {
|
function checkPlatform() {
|
||||||
|
|||||||
Reference in New Issue
Block a user