Skip to content

Commit 8951885

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

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/code_coverage.yml

Lines changed: 12 additions & 9 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@v4
4647
with:
47-
github-token: ${{ secrets.GITHUB_TOKEN }}
4848
file: ./coverage/lcov.info
49-
format: lcov
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@v4
5255
with:

0 commit comments

Comments
 (0)