-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.13 KB
/
ci.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
40
41
name: ci
on: [push]
jobs:
run-tests:
runs-on: ubuntu-latest
name: test suite [otp=${{matrix.otp}}, elixir=${{matrix.elixir}}]
strategy:
matrix:
otp: [24.x, 25.x, 26.x]
elixir: [1.14.x]
steps:
- uses: actions/[email protected]
- name: Cache Dependencies
uses: actions/[email protected]
with:
path: |
deps
_build
tmp/plts
key: elixir-cache-${{matrix.elixir}}-otp-${{matrix.otp}}-${{runner.os}}-${{hashFiles('mix.lock')}}-${{github.ref}}
restore-keys: |
elixir-cache-${{matrix.elixir}}-otp-${{matrix.otp}}-${{runner.os}}-${{hashFiles('mix.lock')}}-
- uses: erlef/[email protected]
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Get deps
run: mix deps.get
- name: Run Tests
env:
MIX_ENV: test
run: mix test --trace
- name: Build docs
run: mix docs
- name: Credo
run: mix credo
- name: Create PLTs
run: mix dialyzer --plt
- name: Dialyzer
run: mix dialyzer