-
Notifications
You must be signed in to change notification settings - Fork 55
44 lines (38 loc) · 956 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
name: CI
on: [pull_request, push]
jobs:
mix_test:
name: mix test (Elixir ${{ matrix.elixir }} OTP ${{ matrix.otp }})
strategy:
matrix:
elixir:
- "1.13"
- "1.14"
otp:
- "24"
- "25"
include:
- elixir: "1.14"
otp: "25"
format: true
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Tests
run: mix test
- name: Format
run: mix format --check-formatted
if: ${{ matrix.format }}
- name: Dialyzer
run: mix dialyzer
if: ${{ matrix.format }}