-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (31 loc) · 823 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
36
37
38
39
40
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc lcov libncurses5-dev
- name: Build project
run: |
make test
- name: Run tests
run: |
./companders_fulltest
- name: Capture coverage info
run: |
lcov --directory . --capture --output-file coverage.info
- name: Filter out system and test code
run: |
lcov --remove coverage.info 'tests/*' '/usr/*' 'companders_fulltest*' --output-file coverage.info
- name: List coverage info
run: |
lcov --list coverage.info