test needs to output coverage
This commit is contained in:
@@ -28,8 +28,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: v1.55.2
|
version: v1.55.2
|
||||||
- name: test
|
- name: test
|
||||||
run: make test
|
run: make test_coverage
|
||||||
- name: Upload coverage reports to Codecov
|
- name: Upload coverage reports to Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
env:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ test:
|
|||||||
|
|
||||||
test_coverage:
|
test_coverage:
|
||||||
@go test -race -v $(GO_FLAGS) -count=1 -coverprofile=coverage.out -covermode=atomic $(GO_PKGS)
|
@go test -race -v $(GO_FLAGS) -count=1 -coverprofile=coverage.out -covermode=atomic $(GO_PKGS)
|
||||||
@go tool cover -html coverage.out
|
|
||||||
|
|
||||||
mocks:
|
mocks:
|
||||||
@go generate ./...
|
@go generate ./...
|
||||||
|
|||||||
Reference in New Issue
Block a user