-
Notifications
You must be signed in to change notification settings - Fork 41
41 lines (37 loc) · 1.01 KB
/
type-check.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: Elixir Dialyzer
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
name: Build and run Dialyzer
runs-on: ubuntu-latest
strategy:
matrix:
include:
- otp-version: 25.0
elixir-version: 1.14.0
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f
with:
elixir-version: ${{ matrix.elixir-version }}
otp-version: ${{ matrix.otp-version }}
- name: Restore Dialyzer PLT cache
uses: actions/cache@v3
with:
path: |
deps
_build
key: plt-${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}-elixir-${{ matrix.elixir-version }}-otp-${{ matrix.otp-version }}
- name: Install and compile dependencies
run: mix do deps.get, deps.compile
- name: Build Dialyzer PLT
run: mix dialyzer --plt
- name: Type check
run: mix dialyzer