File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+ push :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+ env :
15
+ MIX_ENV : test
16
+
17
+ strategy :
18
+ fail-fast : false
19
+ matrix :
20
+ include :
21
+ - elixir : ' 1.11.4'
22
+ otp : ' 24.2'
23
+
24
+ steps :
25
+ - uses : actions/checkout@v3
26
+
27
+ - uses : erlef/setup-beam@v1
28
+ with :
29
+ otp-version : ${{matrix.otp}}
30
+ elixir-version : ${{matrix.elixir}}
31
+
32
+ - name : Cache build artifacts
33
+ uses : actions/cache@v3
34
+ with :
35
+ path : |
36
+ ~/.hex
37
+ ~/.mix
38
+ _build
39
+ priv/plts
40
+ key : ${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
41
+ - name : Install Dependencies
42
+ run : |
43
+ mix local.rebar --force
44
+ mix local.hex --force
45
+ mix deps.get
46
+ - name : Compile Deps
47
+ run : mix deps.compile
48
+ - name : Compile
49
+ run : mix compile
50
+ - name : Run Tests
51
+ run : mix test
You can’t perform that action at this time.
0 commit comments