Skip to content

Commit b0c1b72

Browse files
committed
Merge #327: Replace Coveralls with Codecov for coverage reporting
36f98df Replace coveralls with codecov server for coverage report (GideonBature) Pull request description: <!-- You can erase any parts of this template not applicable to your Pull Request. --> ### Description <!-- Describe the purpose of this PR, what's being adding and/or fixed --> This PR migrates our code coverage reporting from Coveralls to Codecov while maintaining all existing functionality. ### Notes to the reviewers <!-- In this section you can include notes directed to the reviewers, like explaining why some parts of the PR were done in a specific way --> ### Changelog notice <!-- Notice the release manager should include in the release tag message changelog --> <!-- See https://keepachangelog.com/en/1.0.0/ for examples --> #### Changes - **Updated workflow name**: Changed from "Code Coverage" to reflect Codecov integration - **Replaced coverage service**: Switched from `coverallsapp/github-action` to `codecov/codecov-action@v4` - **Enhanced permissions**: Added necessary permissions for Codecov OIDC authentication: - `contents: read` - `pull-requests: write` - `id-token: write` - **Improved configuration**: Added Codecov-specific parameters: - `use_oidc: true` for secure tokenless authentication - `fail_ci_if_error: false` to prevent CI failures on upload issues - `flags: rust` for better organization - `name: codecov-bdk-wallet` for clear identification ### Checklists #### All Submissions: * [x] I've signed all my commits * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) * [x] I ran `just p` before pushing #### New Features: * [ ] I've added tests for the new feature * [ ] I've added docs for the new feature #### Bugfixes: * [ ] This pull request breaks the existing API * [ ] I've added tests to reproduce the issue which are now passing * [x] I'm linking the issue being fixed by this PR Closes #320 ACKs for top commit: notmandatory: ACK 36f98df Tree-SHA512: 936ad38f329d07dfc6cb70779aac2a13b5e520cb5e80fa26b0fab7d425c0d8a0ed876a4bd55d0fe1654cfb63b03a62aeded3c3b78535b4fb075318fefcbc3211
2 parents 13669c2 + 36f98df commit b0c1b72

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/code_coverage.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
name: Code Coverage
22

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

77
on: [push, pull_request]
88

9-
permissions: {}
9+
permissions:
10+
contents: read
11+
pull-requests: write
1012

1113
jobs:
12-
Codecov:
14+
Coverage:
1315
name: Code Coverage
1416
runs-on: ubuntu-latest
1517
env:
@@ -40,13 +42,14 @@ jobs:
4042
run: grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --keep-only 'src/**' --ignore 'tests/**' --ignore 'examples/**' -o ./coverage/lcov.info
4143
- name: Generate HTML coverage report
4244
run: genhtml -o coverage-report.html --ignore-errors unmapped ./coverage/lcov.info
43-
- name: Coveralls upload
44-
# Action pinned at tag 2.3.6
45-
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
45+
- name: Codecov upload
46+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7
4647
with:
47-
github-token: ${{ secrets.GITHUB_TOKEN }}
48-
file: ./coverage/lcov.info
49-
format: lcov
48+
files: ./coverage/lcov.info
49+
flags: rust
50+
name: codecov-bdk-wallet
51+
token: ${{ secrets.CODECOV_TOKEN }}
52+
fail_ci_if_error: false
5053
- name: Upload artifact
5154
uses: actions/upload-artifact@v5
5255
with:

0 commit comments

Comments
 (0)