-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 959 Bytes
/
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
name: CI checks
on:
push:
branches:
- '*'
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest]
otp-version:
- "22.3"
- "23.3"
- "24.3"
- "25.3"
- "26.2"
- "27.0"
runs-on: ${{ matrix.platform }}
container:
image: erlang:${{ matrix.otp-version }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compile
run: rebar3 compile
- name: Format
run: rebar3 fmt --check
- name: Run Proper Tests
run: rebar3 proper -c
- name: Run EUnit Tests
run: rebar3 eunit -c
- name: Coverage
run: rebar3 cover --verbose --min_coverage 80 # zip/3 can only be fully tested on OTP-26+
- name: Run Xref
run: rebar3 xref
- name: Generate Documentation
run: rebar3 edoc
- name: Run dialyzer
run: rebar3 dialyzer