-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (49 loc) · 1.24 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
42
43
44
45
46
47
48
49
50
51
on:
- push
- pull_request
jobs:
unit_tests:
name: Unit Tests
runs-on: ubuntu-22.04
env:
MIX_ENV: test
steps:
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
elixir-version: "1.15.4"
- name: Checkout repository
uses: actions/checkout@v3
- name: Get dependencies
run: mix deps.get --only test
- name: Compile
run: mix compile
- name: Run unit tests
run: mix test
type_check:
name: Type Check
runs-on: ubuntu-22.04
steps:
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
elixir-version: "1.15.4"
- name: Checkout repository
uses: actions/checkout@v3
- name: Get dependencies
run: mix deps.get --only dev
- name: Restore PLTs
uses: actions/cache@v1
with:
path: _build/dev/plt
key: plt-${{ github.ref }}-${{ github.sha }}
restore-keys: |
plt-${{ github.ref }}-${{ github.sha }}
plt-${{ github.ref }}-
plt-refs/heads/master-
- name: Compile
run: mix compile
- name: Run dialyzer
run: mix dialyzer