From 143cc06a777872ef18ade1a06249b7f67344df1d Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sun, 31 Jan 2021 13:06:20 +0100 Subject: [PATCH] :construction_worker: add CI step for coverage --- .clang-tidy | 4 +++- .github/workflows/ubuntu.yml | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 9c1e74231..f2c3593c4 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -38,5 +38,7 @@ CheckOptions: - key: hicpp-special-member-functions.AllowSoleDefaultDtor value: 1 +WarningsAsErrors: '*' + #HeaderFilterRegex: '.*nlohmann.*' -HeaderFilterRegex: '^(.*doctest.h)$' +HeaderFilterRegex: 'include/.*' diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 817672396..c7bc8c306 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -131,4 +131,9 @@ jobs: uses: actions/upload-artifact@v2 with: name: code-coverage-report - path: build_coverage/html + path: build/build_coverage/html + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: build/build_coverage/json.info