Skip to content

Commit

Permalink
chore: use codecov uploader from build-container
Browse files Browse the repository at this point in the history
Also tweak codecov configuration.

Signed-off-by: Alexey Palazhchenko <[email protected]>
  • Loading branch information
AlekSi committed Sep 7, 2021
1 parent cced038 commit 5594c96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ codecov:
require_ci_to_pass: false

coverage:
range: 25..75

status:
project:
default:
target: 15%
threshold: 0.5%
base: auto
target: auto
threshold: 1%
if_ci_failed: success
patch: off

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ test: ## Run tests.
cd internal/integration && KUBECONFIG=../../kubeconfig ./integration.test -test.v -test.coverprofile=../../coverage.txt

coverage: ## Upload coverage data to codecov.io.
bash -c "bash <(curl -s https://codecov.io/bash) -f coverage.txt -X fix"
/usr/local/bin/codecov -f coverage.txt -X fix

talosctl:
curl -Lo talosctl https://github.com/talos-systems/talos/releases/download/$(TALOS_VERSION)/talosctl-$(shell uname -s | tr "[:upper:]" "[:lower:]")-amd64
Expand Down

0 comments on commit 5594c96

Please sign in to comment.