-
Notifications
You must be signed in to change notification settings - Fork 55
81 lines (80 loc) · 2.29 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: CI
on:
push:
branches:
- '*'
pull_request:
branches:
- main
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
otp-version: 21.3
rebar3-version: 3.15
- os: ubuntu-20.04
otp-version: '22.3'
rebar3-version: 3.16
- os: ubuntu-20.04
otp-version: 23.3
rebar3-version: 3.19
- os: ubuntu-20.04
otp-version: 24.3
rebar3-version: 3.22
- os: ubuntu-20.04
otp-version: 25.3
rebar3-version: 3.22
- os: ubuntu-22.04
otp-version: 26
rebar3-version: 3.22
- os: ubuntu-22.04
otp-version: 27
rebar3-version: 3.23
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp-version}}
rebar3-version: ${{matrix.rebar3-version}}
- name: Cache Hex packages
uses: actions/cache@v1
with:
path: ~/.cache/rebar3/hex/hexpm/packages
key: ${{ runner.os }}-hex-${{ hashFiles(format('{0}{1}', github.workspace, '/rebar.lock')) }}
restore-keys: |
${{ runner.os }}-hex-
- name: Compile
run: make compile
- name: Test
run: make test
- name: Check format
run: make checkfmt
dialyzer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: 26
rebar3-version: 3.22
- name: Cache Dialyzer PLTs
uses: actions/cache@v1
with:
path: ~/.cache/rebar3/rebar3_*.plt
key: ${{ runner.os }}-dialyzer-${{ hashFiles(format('{0}{1}', github.workspace, '/rebar.config')) }}
restore-keys: |
${{ runner.os }}-dialyzer-
- name: Cache Dialyzer PLTs
uses: actions/cache@v1
with:
path: ~/.cache/rebar3/rebar3_*.plt
key: ${{ runner.os }}-dialyzer-${{ hashFiles(format('{0}{1}', github.workspace, '/rebar.config')) }}
restore-keys: |
${{ runner.os }}-dialyzer-
- name: Dialyzer
run: rebar3 dialyzer