-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (33 loc) · 936 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
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
include:
- elixir: "1.14.1"
otp: "25.3"
testArgs: "--exclude=lts_only"
- elixir: "1.14.5"
otp: "26.0"
testArgs: "--exclude=lts_only"
- elixir: "1.15.4"
otp: "26.0"
testArgs: ""
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Install Dependencies
run: mix deps.get
- name: Check compile warnings
run: mix compile --warnings-as-errors
- name: Check format
run: mix format --check-formatted
# TODO add dialyzer?
- name: Unit tests
run: mix test ${{ matrix.testArgs }}