From f1cc52a406a0da22b478d7c549cc0218d723c02e Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周一, 16 1月 2023 20:46:21 +0800 Subject: [PATCH] actions: collect coverage by lcov --- .github/workflows/ubuntu.yml | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 0473c96..ebd2bc0 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -39,9 +39,16 @@ CFLAGS: -fprofile-arcs -ftest-coverage LDFLAGS: -lgcov run: make clean all test - + + - name: lcov_capture + run: lcov --capture --directory . --output-file coverage.info + + - name: lcov_cleanup + run: lcov --remove coverage.info 'test/*' --output-file coverage.info + - name: Coveralls uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} base-path: libscpi/ + path-to-lcov: coverage.info -- Gitblit v1.9.1