diff --git a/.codecov.yaml b/.codecov.yaml index 05f9078d..6270e15e 100644 --- a/.codecov.yaml +++ b/.codecov.yaml @@ -1,11 +1,20 @@ 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: status: project: - target: 99% - informational: true # Make it informational only + # Compare against current base branch, not commit hash + 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: target: 99% + threshold: 1% + # Set expected coverage + comment: + layout: "reach, diff, flags, files" + behavior: default + ignore: + - "**/*_test.go" + - "**/test_*.go"