File tree 1 file changed +46
-0
lines changed
1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Tests
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ branches :
7
+ - main
8
+
9
+ jobs :
10
+ tests :
11
+ name : Run tests (${{ matrix.image }})
12
+
13
+ strategy :
14
+ fail-fast : false
15
+ matrix :
16
+ include :
17
+ - image : 1.11.4-erlang-21.3.8.24-debian-buster-20240513-slim
18
+ - image : 1.17.2-erlang-27.0.1-debian-bookworm-20240701-slim
19
+
20
+ runs-on : ubuntu-latest
21
+ container :
22
+ image : hexpm/elixir:${{ matrix.image }}
23
+
24
+ steps :
25
+ - name : Checkout
26
+ uses : actions/checkout@v4
27
+
28
+ - name : Hex and Rebar setup
29
+ run : |
30
+ mix local.hex --force
31
+ mix local.rebar --force
32
+
33
+ - name : Restore deps and _build cache
34
+ uses : actions/cache@v4
35
+ with :
36
+ path : |
37
+ deps
38
+ _build
39
+ key : deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
40
+ restore-keys : |
41
+ deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}
42
+ - name : Install dependencies
43
+ run : mix deps.get --only test
44
+
45
+ - name : Run tests
46
+ run : mix test
You can’t perform that action at this time.
0 commit comments