-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 990 Bytes
/
push.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
35
36
37
38
39
on: push
name: Continuous Integration
jobs:
test:
runs-on: ubuntu-latest
env:
MIX_ENV: test
strategy:
matrix:
otp: [24.2, 25.2]
elixir: [1.13.2, 1.14.3]
steps:
- uses: actions/[email protected]
- name: Cache dialyzer plts
uses: actions/[email protected]
with:
path: priv/plts
key: ${{runner.os}}-${{matrix.otp}}-${{matrix.elixir}}-plts
- uses: erlef/setup-elixir@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Deps get
run: mix deps.get
- name: Check Credo
run: mix credo --strict
- name: Check Formatting
run: mix format --check-formatted
- name: Compile Deps
run: mix deps.compile
- name: Compile project
run: mix do compile --warnings-as-errors
- name: Run Tests
run: mix test
- name: Dialyzer
run: mix dialyzer --halt-exit-status