👷 add CI step for coverage

This commit is contained in:
Niels Lohmann 2021-01-31 13:06:20 +01:00
parent 6413f31d8e
commit 143cc06a77
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 9 additions and 2 deletions

View File

@ -38,5 +38,7 @@ CheckOptions:
- key: hicpp-special-member-functions.AllowSoleDefaultDtor
value: 1
WarningsAsErrors: '*'
#HeaderFilterRegex: '.*nlohmann.*'
HeaderFilterRegex: '^(.*doctest.h)$'
HeaderFilterRegex: 'include/.*'

View File

@ -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