-
Notifications
You must be signed in to change notification settings - Fork 1
25 lines (23 loc) · 755 Bytes
/
Copy pathci.yml
File metadata and controls
25 lines (23 loc) · 755 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
name: ci
on: [push, pull_request]
jobs:
build:
name: Elixir ${{matrix.elixir}} (Erlang/OTP ${{matrix.otp}})
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['25.3', '26.0']
elixir: ['1.14.4']
steps:
- uses: actions/checkout@v3
- 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 --exclude bullet