-
Notifications
You must be signed in to change notification settings - Fork 8
34 lines (34 loc) · 885 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:
linux:
runs-on: ubuntu-20.04
name: Linux OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
include:
- elixir: 1.10.x
otp: 22.x
- elixir: 1.12.x
otp: 23.x
- elixir: 1.14.x
otp: 24.x
- elixir: 1.15.x
otp: 25.x
- elixir: 1.15.x
otp: 26.x
steps:
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- uses: actions/checkout@v3
- run: mix deps.get
- run: mix deps.unlock --check-unused
- run: mix format --check-formatted
if: startsWith(matrix.elixir, '1.15')
- run: mix compile --force --warnings-as-errors
- run: mix credo --strict
- run: mix test --trace