-
Notifications
You must be signed in to change notification settings - Fork 52
59 lines (45 loc) · 1.08 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
format:
name: Code linting
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up Elixir environment
uses: erlef/setup-elixir@v1
with:
otp-version: 21.3
elixir-version: 1.8
- run: mix deps.get
- name: Check formatting
run: mix format --check-formatted
- name: Check compilation warnings
run: mix compile --warnings-as-errors
test:
name: Test suite
runs-on: ubuntu-16.04
strategy:
matrix:
versions:
- otp: 18.3
elixir: 1.5
- otp: 21.3
elixir: 1.8
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- name: Set up Elixir environment
uses: erlef/setup-elixir@v1
with:
elixir-version: ${{ matrix.versions.elixir }}
otp-version: ${{ matrix.versions.otp }}
- name: Install dependencies
run: mix deps.get --only test
- name: Run tests
run: mix test