Skip to content

Commit eeebf9e

Browse files
m1kolatmshort
authored andcommitted
Adds codecov integration (openshift#285)
Signed-off-by: Mikalai Radchuk <[email protected]> Upstream-repository: api Upstream-commit: bbac5028af81cc0cb4604f4a4b2283d225828cbe
1 parent 8498a12 commit eeebf9e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

staging/api/.github/workflows/go.yaml

Lines changed: 6 additions & 1 deletion
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

staging/api/Makefile

Lines changed: 1 addition & 1 deletion
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)