Skip to content

Commit

Permalink
codecov
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
  • Loading branch information
afrittoli committed Mar 28, 2023
1 parent c5213f1 commit 5fdad60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ jobs:
go-version: 1.19
- name: Test
run: make test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ COVER_OUT:=$(REPORTS_DIR)/cover.out
COVERFLAGS=-coverprofile=$(COVER_OUT) --covermode=count --coverpkg=./...

test: ## Run tests with the "unit" build tag
CGO_ENABLED=$(CGO_ENABLED) $(GOTEST) --tags=unit -failfast -short ./...
mkdir -p $(REPORTS_DIR)
CGO_ENABLED=$(CGO_ENABLED) $(GOTEST) $(COVERFLAGS) --tags=unit -failfast -short ./...

.PHONY: fmt
fmt: importfmt ## Format the code
Expand Down

0 comments on commit 5fdad60

Please sign in to comment.