github.com/ianlewis/go-gitignore@v0.1.1-0.20231110021210-4a0f15cbd56f/codecov.yml (about) 1 # Copyright 2023 Google LLC 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 coverage: 16 status: 17 project: 18 default: 19 # Don't allow code coverage to be reduced. 20 target: auto 21 threshold: 5% 22 if_ci_failed: failure # success, failure, error, ignore 23 patch: 24 default: 25 # basic 26 target: auto 27 threshold: 15% 28 base: auto 29 if_ci_failed: failure # success, failure, error, ignore 30 31 comment: 32 layout: "reach, diff, flags, files" 33 behavior: default 34 require_changes: false # if true: only post the comment if coverage changes 35 require_base: false # [yes :: must have a base report to post] 36 require_head: true # [yes :: must have a head report to post]