forked from paulgray/exml
-
Notifications
You must be signed in to change notification settings - Fork 23
42 lines (40 loc) · 1.12 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
name: ci
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
test:
name: OTP ${{matrix.otp_vsn}}
strategy:
matrix:
otp_vsn: ['27', '26', '25']
rebar_vsn: ['3.24.0']
runs-on: 'ubuntu-24.04'
env:
OTPVER: ${{ matrix.otp }}
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_vsn }}
rebar3-version: ${{ matrix.rebar_vsn }}
- uses: actions/cache@v4
name: Cache
with:
path: _build
key: ${{ runner.os }}-build-${{ matrix.otp_vsn }}-${{ hashFiles(format('rebar.lock')) }}-1
restore-keys: ${{ runner.os }}-build-${{ matrix.otp_vsn }}-1-
- run: rebar3 as test compile -d
- run: rebar3 eunit
- run: rebar3 dialyzer
- run: rebar3 as test codecov analyze
- run: gcov -o c_src exml
- uses: codecov/codecov-action@v5
with:
name: Upload coverage reports to Codecov
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true