-
Notifications
You must be signed in to change notification settings - Fork 4
31 lines (29 loc) · 921 Bytes
/
ci.yml
File metadata and controls
31 lines (29 loc) · 921 Bytes
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
name: ci
on: [push, pull_request]
jobs:
build:
name: Elixir ${{matrix.elixir}} (Erlang/OTP ${{matrix.otp}})
runs-on: ubuntu-latest
strategy:
matrix:
otp: ["23.3.4", "24.3.4"]
elixir: ["1.14", "1.13", "1.12", "1.11.4", "1.10.4"]
exclude:
- elixir: "1.10.4"
otp: "24.3.4"
include:
- elixir: "1.14"
otp: "25.1"
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- run: mix deps.get
- run: mix compile --warnings-as-errors
- run: mix credo --strict
- name: "Check formatted?"
run: mix format mix.exs "examples/*.exs" "lib/**/*.{ex,exs}" "test/**/*.exs" --check-formatted
if: ${{ startsWith(matrix.elixir, '1.14') }}
- run: mix test --exclude gnuplot:true