-
Notifications
You must be signed in to change notification settings - Fork 59
48 lines (37 loc) · 942 Bytes
/
main.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
name: CI
on: [push, pull_request]
jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install OTP and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: 25.1
elixir-version: 1.14.0
- name: Install dependencies
run: mix deps.get
- name: Check mix format
run: mix format --check-formatted
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install OTP and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: 25.1
elixir-version: 1.14.0
- name: Install dependencies
run: |
mix deps.get
mix deps.compile
- name: Check for compiler warnings
run: |
MIX_ENV=test mix compile --warnings-as-errors
- name: Run tests
run: |
mix test