-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 895 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
on: push
name: Continuous Integration
jobs:
test:
runs-on: ubuntu-latest
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v4
- name: Cache dialyzer plts
uses: actions/cache@v4
with:
path: priv/plts
key: ${{runner.os}}-${{matrix.otp}}-${{matrix.elixir}}-plts
- name: Setup elixir
uses: erlef/setup-beam@v1
with:
version-file: ".tool-versions"
version-type: "strict"
- name: Deps get and check unused
run: mix deps.get && mix deps.unlock --check-unused
- name: Check Credo
run: mix credo --strict
- name: Check Formatting
run: mix format --check-formatted
- name: Compile
run: mix compile --warnings-as-errors
- name: Run Tests
run: mix do test
- name: Dialyzer
run: mix dialyzer --format github