-
Notifications
You must be signed in to change notification settings - Fork 27
43 lines (35 loc) · 973 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
name: CI
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
include:
- erlang: "24.0"
elixir: "1.12.2"
lint: true
- erlang: "19.3"
elixir: "1.7.4"
steps:
- uses: actions/checkout@v1
- name: Install OTP and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.erlang}}
elixir-version: ${{matrix.elixir}}
- name: Install dependencies
run: mix deps.get
- name: Check for unused dependencies
run: mix deps.unlock --check-unused
if: ${{matrix.lint}}
- name: Compile with --warnings-as-errors
run: mix compile --warnings-as-errors
if: ${{matrix.lint}}
- name: Check mix format
run: mix format --check-formatted
if: ${{matrix.lint}}
- name: Run tests
run: mix test --trace