Skip to content

Commit afa48b3

Browse files
Show C code test coverage
1 parent d99f1ea commit afa48b3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,17 @@ jobs:
7474
- uses: actions/checkout@v4
7575
- name: Install dependencies
7676
run: |
77-
sudo apt install -y ninja-build libcunit1-dev valgrind meson
77+
sudo apt install -y ninja-build libcunit1-dev valgrind meson gcovr
7878
- name: Build
7979
working-directory: ./lib
8080
run: |
81-
meson setup build
81+
meson setup -Db_coverage=true build
8282
- name: Tests
8383
working-directory: ./lib
8484
run: |
8585
ninja -C build test
86+
- name: Show coverage
87+
working-directory: ./lib
88+
run: |
89+
ninja -C build coverage-text
90+
cat build/meson-logs/coverage.txt

0 commit comments

Comments
 (0)