Skip to content

Commit

Permalink
Adds codecov integration (#285)
Browse files Browse the repository at this point in the history
Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
  • Loading branch information
m1kola committed Jun 29, 2023
1 parent aa3e498 commit bbac502
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: unit-test
run: go test -v ./...
run: go test -v ./... -coverprofile cover.out
- uses: codecov/codecov-action@v3
with:
files: cover.out
fail_ci_if_error: true
functionalities: fixes

go-apidiff:
name: go-apidiff
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ $(CONTROLLER_GEN): $(LOCALBIN)
.PHONY: yq
yq: $(YQ) ## Download yq locally if necessary.
$(YQ): $(LOCALBIN)
GOBIN=$(LOCALBIN) go install $(GO_INSTALL_OPTS) github.com/mikefarah/yq/v4@$(YQ_VERSION)
GOBIN=$(LOCALBIN) go install $(GO_INSTALL_OPTS) github.com/mikefarah/yq/v4@$(YQ_VERSION)

0 comments on commit bbac502

Please sign in to comment.