-
-
Notifications
You must be signed in to change notification settings - Fork 19
46 lines (43 loc) · 1.2 KB
/
erlang.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
name: Erlang CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
otp_version: ['26', '25', '24']
steps:
- uses: actions/checkout@v1
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
rebar3-version: '3.16'
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-otp-${{ matrix.otp_version }}-mix-${{ hashFiles('**/rebar.lock') }}
restore-keys: ${{ runner.os }}-otp-${{ matrix.otp_version }}-rebar-
- name: Compile
run: rebar3 compile
- name: Run tests
run: rebar3 do ct --cover
- name: Generate coverage data
run: rebar3 covertool generate
- uses: codecov/codecov-action@v1
with:
file: ./_build/test/covertool/systemd.covertool.xml
flags: otp-${{ matrix.otp_version }}
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: '24'
rebar3-version: '3.16'
- name: Check if docs build
run: rebar3 ex_doc