Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions .github/workflows/code_coverage.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Code Coverage

# Generates code coverage reports using grcov and uploads results to Coveralls.
# Generates code coverage reports using grcov and uploads results to Codecov.
# Runs on every push and pull request to track test coverage metrics.
# Uploads coverage data to Coveralls for tracking and produces an HTML report artifact for download.
# Uploads coverage data to Codecov for tracking and produces an HTML report artifact for download.

on: [push, pull_request]

permissions: {}
permissions:
contents: read
pull-requests: write

jobs:
Codecov:
Coverage:
name: Code Coverage
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -40,13 +42,14 @@ jobs:
run: grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --keep-only 'src/**' --ignore 'tests/**' --ignore 'examples/**' -o ./coverage/lcov.info
- name: Generate HTML coverage report
run: genhtml -o coverage-report.html --ignore-errors unmapped ./coverage/lcov.info
- name: Coveralls upload
# Action pinned at tag 2.3.6
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
- name: Codecov upload
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: ./coverage/lcov.info
format: lcov
files: ./coverage/lcov.info
flags: rust
name: codecov-bdk-wallet
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
Expand Down