Skip to content

Commit ec5faeb

Browse files
committed
Replace coveralls with codecov server for coverage report
1 parent 321c8a0 commit ec5faeb

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/code_coverage.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
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
12+
id-token: write
1013

1114
jobs:
12-
Codecov:
15+
Coverage:
1316
name: Code Coverage
1417
runs-on: ubuntu-latest
1518
env:
@@ -40,13 +43,14 @@ jobs:
4043
run: grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --keep-only 'src/**' --ignore 'tests/**' --ignore 'examples/**' -o ./coverage/lcov.info
4144
- name: Generate HTML coverage report
4245
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
46+
- name: Codecov upload
47+
uses: codecov/codecov-action@v4
4648
with:
47-
github-token: ${{ secrets.GITHUB_TOKEN }}
4849
file: ./coverage/lcov.info
49-
format: lcov
50+
flags: rust
51+
name: codecov-bdk-wallet
52+
use_oidc: true
53+
fail_ci_if_error: false
5054
- name: Upload artifact
5155
uses: actions/upload-artifact@v4
5256
with:

0 commit comments

Comments
 (0)