From d0e356df1711e62947b09603feaae59a105e39e3 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Thu, 9 Sep 2021 13:51:12 +0200 Subject: [PATCH] Fix code coverage retrieval Signed-off-by: Sascha Grunert --- .github/grcov.yml | 7 +++++++ .github/workflows/ci.yml | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .github/grcov.yml diff --git a/.github/grcov.yml b/.github/grcov.yml new file mode 100644 index 00000000..018c79ca --- /dev/null +++ b/.github/grcov.yml @@ -0,0 +1,7 @@ +branch: true +ignore-not-existing: true +llvm: true +filter: covered +output-type: lcov +output-path: ./lcov.info +prefix-dir: /home/user/build/ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 802ec6a7..2fb3b981 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -156,8 +156,10 @@ jobs: RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests' - name: Coverage uses: actions-rs/grcov@v0.1 + with: + config: .github/grcov.yml - name: Upload Results - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v2 test-unit: runs-on: ubuntu-latest