diff --git a/codecov.yml b/codecov.yml index 25d8f819f..08d0732c5 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,8 +1,37 @@ +# see https://docs.codecov.io/docs/codecov-yaml +# Validation check: +# $ curl --data-binary @codecov.yml https://codecov.io/validate + ignore: - "**/*.g.dart" + - "!**/lib/**" # ignore all files outside of lib + +codecov: + require_ci_to_pass: yes + notify: + wait_for_ci: yes + +coverage: + precision: 0 # 2 = xx.xx%, 0 = xx% + round: up # how coverage is rounded: down/up/nearest + range: 40...100 # custom range of coverage colors from red -> yellow -> green + status: + project: + default: + informational: true + target: 70% # specify the target coverage for each commit status + threshold: 10% # allow this decrease on project + if_ci_failed: error + patch: + default: + informational: true + threshold: 50% # allow this decrease on patch + changes: false + +github_checks: + annotations: false + comment: - layout: "diff, flags, files" - behavior: default + layout: header, diff require_changes: false - require_base: false - require_head: true + behavior: default \ No newline at end of file