-
-
Notifications
You must be signed in to change notification settings - Fork 49
47 lines (46 loc) · 1.15 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
---
name: test
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
jobs:
test:
name: Erlang/OTP ${{matrix.otp}} / rebar3 ${{matrix.rebar3}}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- otp: 27
os: ubuntu-24.04
rebar3: 3.23
dialyzer: true
- otp: 26
os: ubuntu-24.04
rebar3: 3.23
- otp: 25
os: ubuntu-24.04
rebar3: 3.22
- otp: 24
os: ubuntu-24.04
rebar3: 3.22
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
rebar3-version: ${{matrix.rebar3}}
- name: Static analysis
run: rebar3 dialyzer
if: ${{ matrix.dialyzer == true }}
- name: Common Tests
run: rebar3 ct
- name: Code coverage
run: rebar3 as test do cover,covertool generate
- name: Upload coverage report
uses: codecov/codecov-action@v1
with:
files: _build/test/covertool/rebar3_hex.covertool.xml
name: ${{matrix.otp}}