File tree 1 file changed +49
-0
lines changed
1 file changed +49
-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 : Install inotify-tools
26
+ run : apt update && apt -y install inotify-tools
27
+
28
+ - name : Checkout
29
+ uses : actions/checkout@v4
30
+
31
+ - name : Hex and Rebar setup
32
+ run : |
33
+ mix local.hex --force
34
+ mix local.rebar --force
35
+
36
+ - name : Restore deps and _build cache
37
+ uses : actions/cache@v4
38
+ with :
39
+ path : |
40
+ deps
41
+ _build
42
+ key : deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
43
+ restore-keys : |
44
+ deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}
45
+ - name : Install dependencies
46
+ run : mix deps.get --only test
47
+
48
+ - name : Run tests
49
+ run : mix test
You can’t perform that action at this time.
0 commit comments