Skip to content

Commit

Permalink
Adds codecov integration
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 c4111f6 commit bb7b6ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ jobs:
with:
go-version-file: "go.mod"
- run: make unit

- uses: codecov/codecov-action@v3
with:
files: cover.out
fail_ci_if_error: true
functionalities: fixes
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ verify: tidy ## Run verification checks.
UNIT_TEST_DIRS=$(shell go list ./... | grep -v /test/)
.PHONY: test
unit: ## Run tests.
go test -count=1 -short $(UNIT_TEST_DIRS)
go test -count=1 -short $(UNIT_TEST_DIRS) -coverprofile cover.out

e2e: $(GINKGO)
$(GINKGO) -trace -progress test/e2e
Expand Down

0 comments on commit bb7b6ae

Please sign in to comment.