-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 854 Bytes
/
main.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
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
otp: [24, 25, 26]
rebar3: [3.22.1]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Erlang OTP
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
rebar3-version: ${{matrix.rebar3}}
- name: Check formatting
run: rebar3 fmt -c
- name: Compile
run: rebar3 compile
- name: Run dialyzer
run: rebar3 dialyzer
- name: Run tests
run: rebar3 ct -c
- name: Generate coverage reports
run: rebar3 covertool generate
- uses: codecov/codecov-action@v3
with:
file: _build/test/covertool/spinlock.covertool.xml