-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (33 loc) · 891 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
name: ci
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
test:
name: OTP ${{matrix.otp}}
strategy:
matrix:
otp: ['26.2', '25.3', '24.3']
rebar3: ['3.22.1']
runs-on: 'ubuntu-22.04'
env:
OTPVER: ${{ matrix.otp }}
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
rebar3-version: ${{matrix.rebar3}}
- run: rebar3 do ct --cover
- run: rebar3 as test codecov analyze
- run: rebar3 dialyzer
if: ${{ matrix.otp == '26.2' }}
- uses: codecov/codecov-action@v3
name: Upload coverage reports to Codecov
if: ${{ matrix.otp == '26.2' }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true # optional (default = false)