File tree Expand file tree Collapse file tree 1 file changed +33
-14
lines changed
Expand file tree Collapse file tree 1 file changed +33
-14
lines changed Original file line number Diff line number Diff line change @@ -2,23 +2,42 @@ name: Elixir CI
22
33on :
44 push :
5- branches : [ master ]
5+ branches : [main ]
66 pull_request :
7- branches : [ master ]
7+ branches : [main ]
88
99jobs :
1010 build :
11-
1211 runs-on : ubuntu-latest
13-
12+ strategy :
13+ matrix :
14+ elixir : ['1.12', '1.11', '1.10', '1.9']
15+ otp : ['24.0', '23.2', '22.3']
16+ exclude :
17+ - elixir : ' 1.9'
18+ otp : ' 24.0'
19+ - elixir : ' 1.10'
20+ otp : ' 24.0'
1421 steps :
15- - uses : actions/checkout@v2
16- - name : Setup elixir
17- uses : erlef/setup-elixir@v1
18- with :
19- elixir-version : " 1.11"
20- otp-version : " 23"
21- - name : Install Dependencies
22- run : mix deps.get
23- - name : Run Tests
24- run : mix test
22+ - uses : actions/checkout@v2
23+
24+ - name : Setup BEAM
25+ uses : erlef/setup-beam@v1
26+ with :
27+ elixir-version : ${{ matrix.elixir }}
28+ otp-version : ${{ matrix.otp }}
29+
30+ - name : Restore dependencies cache
31+ uses : actions/cache@v2
32+ with :
33+ path : |
34+ deps
35+ _build
36+ key : ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
37+ restore-keys : ${{ runner.os }}-mix-
38+
39+ - name : Install Dependencies
40+ run : mix deps.get
41+
42+ - name : Run Tests
43+ run : mix test
You can’t perform that action at this time.
0 commit comments