Skip to content

Commit

Permalink
ci: add codecov github action
Browse files Browse the repository at this point in the history
  • Loading branch information
delta1 committed Oct 27, 2023
1 parent c248983 commit 18cc937
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on: [pull_request, push]

name: Code Coverage

jobs:
coverage_report:
name: Generate coverage report
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Build
run: |
sudo apt-get -y install lcov llvm
./autogen.sh
./configure --enable-lcov --enable-lcov-branch-coverage --without-bdb CC=clang CXX=clang++
make -j4 total_coverage.info
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./total_coverage.info
fail_ci_if_error: false # optional (default = false)
verbose: true # optional (default = false)

0 comments on commit 18cc937

Please sign in to comment.