File tree 1 file changed +32
-20
lines changed
1 file changed +32
-20
lines changed Original file line number Diff line number Diff line change @@ -3,35 +3,47 @@ name: CI
3
3
on :
4
4
pull_request :
5
5
push :
6
- branches :
6
+ branches :
7
7
- master
8
8
9
9
jobs :
10
- mix_test :
11
- name : mix test (Erlang/OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}})
12
- runs-on : ubuntu-latest
13
- container : hexpm/elixir:${{ matrix.elixir }}-erlang-${{ matrix.otp }}-alpine-3.11.6
10
+ test :
11
+ runs-on : ubuntu-16.04
12
+ env :
13
+ MIX_ENV : test
14
14
strategy :
15
15
fail-fast : false
16
16
matrix :
17
17
include :
18
- - elixir : 1.7.4
19
- otp : 19.3.6.13
20
- - elixir : 1.8.2
21
- otp : 20.3.8.26
22
- - elixir : 1.9.4
23
- otp : 20.3.8.26
24
- - elixir : 1.10.3
25
- otp : 21.3.8.16
26
- - elixir : 1.10.3
27
- otp : 23.0.2
18
+ - pair :
19
+ elixir : 1.7.4
20
+ otp : 19.3.6.13
21
+ - pair :
22
+ elixir : 1.11.3
23
+ otp : 23.2.5
24
+ lint : lint
28
25
steps :
29
-
26
+ - uses : actions/checkout@v2
27
+
28
+ - uses : erlef/setup-elixir@v1
29
+ with :
30
+ otp-version : ${{matrix.pair.otp}}
31
+ elixir-version : ${{matrix.pair.elixir}}
32
+
30
33
- name : Install Dependencies
31
- run : |
32
- mix local.rebar --force
33
- mix local.hex --force
34
- mix deps.get
34
+ run : mix deps.get --only test
35
+
36
+ - run : mix format --check-formatted
37
+ if : ${{ matrix.lint }}
38
+
39
+ - run : mix deps.get && mix deps.unlock --check-unused
40
+ if : ${{ matrix.lint }}
41
+
42
+ - run : mix deps.compile
43
+
44
+ - run : mix compile --warnings-as-errors
45
+ if : ${{ matrix.lint }}
46
+
35
47
- run : mix test.all
36
48
env :
37
49
ELIXIR_ERL_OPTIONS : " +T 9"
You can’t perform that action at this time.
0 commit comments