-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (29 loc) · 871 Bytes
/
elixir.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
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
include:
- elixir: 1.14.x
otp: 25.x
check_formatted: true
steps:
- uses: actions/checkout@v3.5.0
- uses: erlef/setup-elixir@v1.14
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Install Dependencies
run: mix deps.get && mix deps.unlock --check-unused
- name: Check formatting
if: matrix.check_formatted
run: mix format --check-formatted
- name: Check style
if: matrix.check_style
run: mix credo --format flycheck
- name: Compile project
run: mix compile --warnings-as-errors
- name: Run tests
run: mix test --cover