-
Notifications
You must be signed in to change notification settings - Fork 8
29 lines (28 loc) · 844 Bytes
/
ci.yml
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
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
# https://hexdocs.pm/elixir/compatibility-and-deprecations.html
# https://github.com/erlef/setup-beam#compatibility-between-operating-system-and-erlangotp
elixir: ["1.13.2", "1.14"]
otp: ["25", "24", "23", "22"]
os: ["ubuntu-20.04"]
exclude:
- otp: 22
elixir: 1.14
# Erlang 25 is only compatible with Elixir >= 1.13.4
- otp: 25
elixir: 1.13.2
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1.9.0
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- run: mix deps.get
- run: mix deps.compile
- run: mix compile --warnings-as-errors
- run: mix test