-
-
Notifications
You must be signed in to change notification settings - Fork 46
47 lines (42 loc) · 1.41 KB
/
elixir_matrix.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Elixir Compatibility Matrix
on:
push:
branches: [develop]
pull_request:
branches: [develop]
jobs:
test:
runs-on: ubuntu-20.04
name: Test - OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
fail-fast: false
matrix:
# See https://hexdocs.pm/elixir/1.13/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp
otp: ["23.x", "24.x", "25.x", "26.x"]
elixir: ["1.14.x", "1.15.x"]
exclude:
# OTP 23
- elixir: "1.15.x"
otp: "23.x"
steps:
- uses: actions/checkout@v4.1.1
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Retrieve Build Cache
uses: actions/cache@v3
id: build-folder-cache
with:
path: _build
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Retrieve Mix Dependencies Cache
uses: actions/cache@v3
id: mix-cache
with:
path: deps
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- run: mix local.rebar --force
- run: mix local.hex --force
- run: mix deps.get
- run: mix test --exclude integration