Skip to content

Commit

Permalink
ci specific coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ren3gadem4rm0t committed Sep 26, 2024
1 parent 20f4eff commit 1eef4e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: make test

- name: Coverage
run: make coverage
run: make coverage-ci

# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ coverage:
go tool cover -html=coverage/coverage.out -o coverage/coverage.html; \
open coverage/coverage.html

coverage-ci:
@mkdir -p coverage
@go test -coverprofile=coverage/coverage.out ./... && \
go tool cover -func=coverage/coverage.out

vet:
@go vet ./...

Expand Down

0 comments on commit 1eef4e8

Please sign in to comment.