-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (42 loc) · 964 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
check-format:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- uses: erlef/setup-beam@v1
with:
otp-version: 24.1
elixir-version: 1.13
- run: mix deps.get
- run: mix format --check-formatted
test:
name: OTP ${{matrix.erlang}} / Elixir ${{matrix.elixir}}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- erlang: 24.1
elixir: 1.13
- erlang: 24.0.1
elixir: 1.12.1
- erlang: 23.3
elixir: 1.11.4
- erlang: 23.3
elixir: 1.10.4
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.erlang}}
elixir-version: ${{matrix.elixir}}
- run: mix deps.get
- run: mix test