-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Enable coverage on main and all PRs (#2533)
In preparation for some larger changes to the proxy, this change enables codecov on main and on PRs that change code. We need to run coverage on main so that PRs have a meaningful comparison point. We use the styfle/cancel-workflow-action to prevent multiple runs from clogging up Actions Runners. We can adapt this configuration if it's too annoying, but it seems low risk to add for now.
- Loading branch information
Showing
2 changed files
with
50 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,34 @@ | ||
codecov: | ||
ignore: | ||
- "linkerd/app/integration/src/**" | ||
- "**/src/gen/**" | ||
- "tools/**" | ||
|
||
coverage: | ||
# Disable statuses until we sort out coverage more broadly. This is noisy as | ||
# it is. | ||
precision: 2 | ||
round: down | ||
range: "70...100" | ||
|
||
status: | ||
project: | ||
default: false | ||
default: | ||
target: auto | ||
threshold: 2% | ||
if_not_found: success | ||
if_ci_failed: error | ||
paths: | ||
- "!linkerd/app/integration/src/**" | ||
- "!**/src/gen/**" | ||
- "!tools/**" | ||
|
||
patch: | ||
default: false | ||
default: | ||
target: auto | ||
threshold: 1% | ||
if_not_found: success | ||
if_ci_failed: error | ||
|
||
comment: | ||
layout: "header, diff, files, footer" | ||
behavior: default | ||
require_changes: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters