Skip to content

Commit 4ceb6ed

Browse files
committed
Do the coverage thing
1 parent 8f3c209 commit 4ceb6ed

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,17 @@ jobs:
1010
uses: actions/checkout@v4
1111
- run: ./autogen.sh
1212
- run: ./configure --enable-syslog
13-
- run: make distcheck
13+
- name: Build and run tests (coverage)
14+
run: |
15+
make CFLAGS="--coverage -O0 -g" CXXFLAGS="--coverage -O0 -g" LDFLAGS="--coverage"
16+
make check CFLAGS="--coverage -O0 -g" CXXFLAGS="--coverage -O0 -g" LDFLAGS="--coverage"
17+
- name: Generate coverage reports
18+
run: |
19+
gcovr -r . --exclude-directories tests --print-summary --xml-pretty -o coverage.xml --html=coverage.html --html-details
20+
- name: Upload coverage reports
21+
uses: actions/upload-artifact@v4
22+
with:
23+
name: coverage
24+
path: |
25+
coverage.xml
26+
coverage.html

0 commit comments

Comments
 (0)