Skip to content

Commit 8a54f16

Browse files
skirtan1yurishkuro
andauthored
Add coverage calculation and badge (#127)
## Which problem is this PR solving? Enhancements for [#6572](jaegertracing/jaeger#6572) ## Description of the changes - Use retry upload action from main branch - Delete lines for model.pb.go from coverage - add badge to readme ## How was this change tested? - ## Checklist - [X] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [X] I have signed all commits - [ ] I have added unit tests for the new functionality - [ ] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` --------- Signed-off-by: Shreyas Kirtane <[email protected]> Signed-off-by: Yuri Shkuro <[email protected]> Signed-off-by: Yuri Shkuro <[email protected]> Co-authored-by: Yuri Shkuro <[email protected]> Co-authored-by: Yuri Shkuro <[email protected]>
1 parent 3e525d7 commit 8a54f16

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

.codecov.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: yes
4+
strict_yaml_branch: main # only use the latest copy on the main branch
5+
6+
ignore:
7+
- "model/v1/model.pb.go"
8+
- "proto-gen/*/*"
9+
10+
coverage:
11+
precision: 2
12+
round: down
13+
range: "85...100"
14+
status:
15+
project:
16+
default:
17+
enabled: yes
18+
target: 85%
19+
patch:
20+
default:
21+
enabled: yes
22+
target: 90%

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea/
22
gen-*/
33
.proto-gen-polyglot/
4+
coverage.txt

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ swagger-validate:
4040
clean:
4141
rm -rf *gen-* || true
4242
rm -rf .*gen-* || true
43+
rm -rf coverage.txt
4344

4445
.PHONY: thrift
4546
thrift: thrift-image clean $(THRIFT_FILES)

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# jaeger-idl [![Build Status][ci-img]][ci]
2+
[![Coverage Status][cov-img]][cov]
23

34
A set of shared Thrift and Protobuf data model definitions used by the Jaeger components.
45

@@ -35,3 +36,5 @@ See [CONTRIBUTING](./CONTRIBUTING.md).
3536

3637
[ci-img]: https://github.com/jaegertracing/jaeger-idl/actions/workflows/ci-unit-tests.yml/badge.svg
3738
[ci]: https://github.com/jaegertracing/jaeger-idl/actions/workflows/ci-unit-tests.yml
39+
[cov-img]: https://codecov.io/gh/jaegertracing/jaeger-idl/branch/main/graph/badge.svg
40+
[cov]: https://codecov.io/gh/jaegertracing/jaeger-idl/branch/main/

0 commit comments

Comments
 (0)