-
Notifications
You must be signed in to change notification settings - Fork 45
81 lines (78 loc) · 2.37 KB
/
main.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
on:
push:
branches:
- master
pull_request:
name: tests
env:
MIX_ENV: test
jobs:
test:
runs-on: ubuntu-20.04
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
fail-fast: false
matrix:
otp: ["20.3", "21.3", "22.3", "23.3", "24.3", "25.2"]
elixir: ["1.10.4", "1.11.4", "1.12.3", "1.13.4", "1.14.3"]
exclude:
# Supporter Erlang/OTP versions
# Elixir 1.10 ; erlang 21 - 22 (23 from v1.10.3)
- otp: "20.3"
elixir: "1.10.4"
- otp: "24.3"
elixir: "1.10.4"
- otp: "25.2"
elixir: "1.10.4"
- otp: "23.3"
elixir: "1.10.4"
# Elixir 1.11 ; erlang 21 - 23 (24 from v1.11.4)
- otp: "20.3"
elixir: "1.11.4"
- otp: "25.2"
elixir: "1.11.4"
# Elixir 1.12 ; erlang 22 - 24
- otp: "20.3"
elixir: "1.12.3"
- otp: "21.3"
elixir: "1.12.3"
- otp: "25.2"
elixir: "1.12.3"
# Elixir 1.13 ; erlang 22 - 24 (25 from 1.13.4)
- otp: "20.3"
elixir: "1.13.4"
- otp: "21.3"
elixir: "1.13.4"
# Elixir 1.14 ; erlang 23 - 25
- otp: "20.3"
elixir: "1.14.3"
- otp: "21.3"
elixir: "1.14.3"
- otp: "22.3"
elixir: "1.14.3"
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Cache deps
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-deps-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-deps-${{ matrix.otp }}-${{ matrix.elixir }}-
- name: Cache build
uses: actions/cache@v3
with:
path: _build
key: ${{ runner.os }}-build-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-build-${{ matrix.otp }}-${{ matrix.elixir }}-
- run: mix deps.get
- run: mix compile --warnings-as-errors
- run: mix credo --strict
- run: mix coveralls.github
- run: mix dialyzer