-
Notifications
You must be signed in to change notification settings - Fork 23
35 lines (32 loc) · 924 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:
workflow_dispatch:
jobs:
test:
name: ${{ matrix.test-type }} test on OTP ${{matrix.otp_vsn}}
strategy:
matrix:
otp_vsn: ['27', '26', '25']
rebar_vsn: ['3.23.0']
test-type: ['regular', 'integration']
runs-on: 'ubuntu-24.04'
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_vsn }}
rebar3-version: ${{ matrix.rebar_vsn }}
- if: matrix.test-type == 'regular'
run: make test
- if: matrix.test-type == 'regular'
name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- if: matrix.test-type == 'integration'
run: make integration_test
env:
OTP_RELEASE: ${{ matrix.otp_vsn }}