Skip to content

Commit 379890c

Browse files
committed
ci: start integrating coverage reports
1 parent d1dbb09 commit 379890c

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ jobs:
4242
run: sudo apt-get install gcc make
4343
- name: Run tests
4444
run: make -C test tests
45+
- name: Upload coverage reports to Codecov
46+
uses: codecov/codecov-action@v3
47+
env:
48+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ html
2020
*.elf
2121
*.test
2222

23+
# test coverage
24+
*.gcda
25+
*.gcno
26+
2327
# Linker output
2428
*.ilk
2529
*.map

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
![CI Status](https://github.com/polesskiy-dev/active-object-fsm/actions/workflows/ci.yml/badge.svg?branch=main)
2+
[![Documentation](https://img.shields.io/badge/docs-Doxygen-blue.svg)](https://polesskiy-dev.github.io/active-object-fsm/)
3+
24
# active-object-fsm
35
Minimalistic implementation of Active Object pattern + FSM for embedded systems.
46

test/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Compiler
2-
CC = gcc
2+
CC = gcc -fprofile-arcs -ftest-coverage
33

44
# Directories
55
SRC_DIR = ../src

0 commit comments

Comments
 (0)