mirror of
https://github.com/gin-gonic/gin.git
synced 2026-06-06 03:08:11 +08:00
Add codecov.yaml to properly configure coverage comparison
- Set project target to auto to compare against current base branch - Set 1% threshold to allow minor coverage fluctuations - Make project check informational to not block merging - Configure proper patch coverage targets - Ignore test files from coverage calculations
This commit is contained in:
parent
3aa63d8650
commit
47bf36680f
@ -1,11 +1,20 @@
|
|||||||
codecov:
|
codecov:
|
||||||
# Tell Codecov to compare against upstream master, not commit hash
|
|
||||||
base: "https://github.com/gin-gonic/gin"
|
|
||||||
# Set expected coverage based on current master
|
|
||||||
coverage:
|
coverage:
|
||||||
status:
|
status:
|
||||||
project:
|
project:
|
||||||
target: 99%
|
# Compare against current base branch, not commit hash
|
||||||
informational: true # Make it informational only
|
target: auto
|
||||||
|
# Only fail if coverage drops significantly (more than 1%)
|
||||||
|
threshold: 1%
|
||||||
|
# Make it informational so it doesn't block merging
|
||||||
|
informational: true
|
||||||
patch:
|
patch:
|
||||||
target: 99%
|
target: 99%
|
||||||
|
threshold: 1%
|
||||||
|
# Set expected coverage
|
||||||
|
comment:
|
||||||
|
layout: "reach, diff, flags, files"
|
||||||
|
behavior: default
|
||||||
|
ignore:
|
||||||
|
- "**/*_test.go"
|
||||||
|
- "**/test_*.go"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user