File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change 7
7
- main
8
8
9
9
jobs :
10
+ lint :
11
+ runs-on : ubuntu-20.04
12
+ env :
13
+ MIX_ENV : test
14
+ name : Lint
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - uses : erlef/setup-elixir@v1
18
+ with :
19
+ otp-version : " 24"
20
+ elixir-version : " 1.12"
21
+ - run : mix deps.get && mix deps.unlock --check-unused
22
+ - run : mix format --check-formatted
10
23
test :
11
24
runs-on : ubuntu-20.04
12
25
env :
13
26
MIX_ENV : test
14
- name : OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
27
+ name : Ubuntu / OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
15
28
strategy :
16
29
fail-fast : false
17
30
matrix :
18
31
include :
19
32
- elixir : " 1.12"
20
33
otp : " 24"
21
- lint : true
22
34
- elixir : " 1.12"
23
35
otp : " 23"
24
36
- elixir : " 1.11"
38
50
otp-version : ${{matrix.otp}}
39
51
elixir-version : ${{matrix.elixir}}
40
52
- run : mix deps.get --only test
41
- - run : mix format --check-formatted
42
- if : ${{ matrix.lint }}
43
- - run : mix deps.get && mix deps.unlock --check-unused
44
- if : ${{ matrix.lint }}
45
53
- run : mix deps.compile
46
- - run : mix compile --warnings-as-errors
47
- if : ${{ matrix.lint }}
54
+ - run : mix compile
48
55
- run : mix test
You can’t perform that action at this time.
0 commit comments