-
Notifications
You must be signed in to change notification settings - Fork 266
67 lines (53 loc) · 1.67 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
name: CI
on: [push, pull_request]
jobs:
ci:
name: Test on OTP ${{ matrix.otp }} / Profile ${{ matrix.profile }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
otp: ["25", "24", "23", "22"]
rebar3: ["3.18.0"]
profile: [test, ranch_v2]
include:
- os: ubuntu-20.04
otp: "21"
rebar3: "3.15.2"
profile: "test"
- os: ubuntu-20.04
otp: "21"
rebar3: "3.15.2"
profile: "ranch_v2"
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
rebar3-version: ${{ matrix.rebar3 }}
- name: Cache Hex packages
uses: actions/cache@v2
with:
path: ~/.cache/rebar3/hex/hexpm/packages
key: ${{ runner.os }}-hex-${{ hashFiles('**/rebar.lock') }}
restore-keys: ${{ runner.os }}-hex-
- name: Cache Dialyzer PLTs
uses: actions/cache@v2
with:
path: |
~/.cache/rebar3/rebar3_*_plt
_build/dialyzer/rebar3_*_plt
key: ${{ runner.os }}-${{ matrix.otp }}-dialyzer-${{ hashFiles('**/rebar.config') }}
restore-keys: ${{ runner.os }}-${{ matrix.otp }}-dialyzer-
- name: Xref
run: make xref
- name: Format
run: rebar3 fmt --check
- name: Test
run: make test REBAR_PROFILE=${{ matrix.profile }}
- name: Proper
run: make proper REBAR_PROFILE=${{ matrix.profile }}
- name: Cover
run: make cover REBAR_PROFILE=${{ matrix.profile }}
- name: Dialyzer
run: make dialyze