-
Notifications
You must be signed in to change notification settings - Fork 75
32 lines (32 loc) · 855 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
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.13.4
otp: 24
- elixir: 1.14.3
otp: 25.2.1
- elixir: 1.16
otp: 26
check_warnings: true
check_format: true
steps:
- uses: actions/checkout@v2
- run: docker-compose up -d
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- run: mix deps.get
- run: mix format --check-formatted
if: ${{ matrix.check_format }}
- run: mix compile --force --warnings-as-errors
if: ${{ matrix.check_warnings }}
- run: mix test --trace --cover