We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f3c209 commit 4ceb6edCopy full SHA for 4ceb6ed
1 file changed
.github/workflows/build.yml
@@ -10,4 +10,17 @@ jobs:
10
uses: actions/checkout@v4
11
- run: ./autogen.sh
12
- run: ./configure --enable-syslog
13
- - run: make distcheck
+ - 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
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