-
Notifications
You must be signed in to change notification settings - Fork 11
56 lines (44 loc) · 1.34 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: check
on: [pull_request, push]
jobs:
mix_check:
name: mix check (Elixir ${{matrix.elixir}}, OTP ${{matrix.otp}})
strategy:
fail-fast: false
matrix:
include:
- elixir: '1.16.1'
otp: '26.2.2'
- elixir: '1.14.5'
otp: '24.3.4.16'
- elixir: '1.12.3'
otp: '22.3.4.26'
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-elixir@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Cache deps and build
uses: actions/cache@v3
with:
path: |
deps
_build
key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-git-${{ github.sha }}
restore-keys: |
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}
- name: Fetch deps
run: mix deps.get
- name: Remove application build
run: mix clean
- name: Compile deps
run: mix deps.compile
- name: Compile app
run: mix compile
- name: Run check
run: mix check