Skip to content

Commit

Permalink
Fix Coverage (#36)
Browse files Browse the repository at this point in the history
* update coverage

* Update coverage script

* Use bazel tool coverage collect cc

* Revert "update coverage"

This reverts commit 147f0a4.

* Update bazel.yml
  • Loading branch information
Lynskylate authored Jan 14, 2025
1 parent e528f1b commit 8f2403b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ build:coverage --experimental_generate_llvm_lcov
build:coverage --collect_code_coverage
build:coverage --instrumentation_filter="//hessian2[/:]"
build:coverage --coverage_support=@hessian2-codec//bazel/coverage:coverage_support
build:coverage --test_env=CC_CODE_COVERAGE_SCRIPT=external/hessian2-codec/bazel/coverage/collect_cc_coverage.sh
build:coverage --test_env=CC_CODE_COVERAGE_SCRIPT=external/bazel_tools/tools/test/collect_cc_coverage.sh
build:coverage --strategy=TestRunner=local
build:coverage --strategy=CoverageReport=local
build:coverage --experimental_use_llvm_covmap
Expand Down
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.0
6.5.0
3 changes: 2 additions & 1 deletion .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ jobs:
# Upload coverage report to the codecov.
- name: report
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
files: ./coverage_report/coverage.dat
name: codecov-hessian2-codec
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 8f2403b

Please sign in to comment.