-
Notifications
You must be signed in to change notification settings - Fork 38
51 lines (49 loc) · 1.31 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
name: ci
on:
push:
branches:
- master
pull_request:
branches:
- "*"
workflow_dispatch: {}
jobs:
test:
name: OTP ${{matrix.otp}}
runs-on: 'ubuntu-24.04'
strategy:
matrix:
otp: ['27', '26', '25']
rebar3: ['3.24.0']
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
rebar3-version: ${{matrix.rebar3}}
- run: rebar3 compile
- run: rebar3 xref
- run: rebar3 lint
- run: rebar3 ex_doc
- run: rebar3 fmt --check
if: ${{ matrix.otp == '27' }}
- run: rebar3 dialyzer
if: ${{ matrix.otp == '27' }}
- run: rebar3 eunit
- run: rebar3 ct
- run: rebar3 do cover, covertool generate
- name: install valgrind
if: ${{ matrix.otp == '27' }}
timeout-minutes: 10
run: |
sudo apt-get -qq update
sudo apt-get -qq install -y build-essential git-core perl valgrind
- run: make -C c_src memory-test
if: ${{ matrix.otp == '27' }}
- name: Upload code coverage
uses: codecov/codecov-action@v5
with:
files: _build/test/covertool/*.covertool.xml
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true