Skip to content

Commit bbac502

Browse files
authored
Adds codecov integration (#285)
Signed-off-by: Mikalai Radchuk <[email protected]>
1 parent aa3e498 commit bbac502

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/go.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ jobs:
2929
restore-keys: |
3030
${{ runner.os }}-go-
3131
- name: unit-test
32-
run: go test -v ./...
32+
run: go test -v ./... -coverprofile cover.out
33+
- uses: codecov/codecov-action@v3
34+
with:
35+
files: cover.out
36+
fail_ci_if_error: true
37+
functionalities: fixes
3338

3439
go-apidiff:
3540
name: go-apidiff

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@ $(CONTROLLER_GEN): $(LOCALBIN)
112112
.PHONY: yq
113113
yq: $(YQ) ## Download yq locally if necessary.
114114
$(YQ): $(LOCALBIN)
115-
GOBIN=$(LOCALBIN) go install $(GO_INSTALL_OPTS) github.com/mikefarah/yq/v4@$(YQ_VERSION)
115+
GOBIN=$(LOCALBIN) go install $(GO_INSTALL_OPTS) github.com/mikefarah/yq/v4@$(YQ_VERSION)

0 commit comments

Comments
 (0)