Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix go coverage #170

Merged
merged 1 commit into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/golang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ jobs:
run: |
go install github.com/onsi/ginkgo/ginkgo@${{ env.GINKGO_VERSION }}
GINKGO=ginkgo make go-test-ci
# - name: Convert coverage to lcov
# uses: jandelgado/gcov2lcov-action@v1.0.8
# with:
# infile: monoskope.coverprofile
# - name: Coveralls GitHub Action
# uses: coverallsapp/github-action@1.1.3
# with:
# github-token: ${{ secrets.github_token }}
# path-to-lcov: coverage.lcov
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.9
with:
infile: monoskope.coverprofile
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov
2 changes: 2 additions & 0 deletions go.mk
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ go-report: ## create report of commands and permission

go-test: ## run all tests
# https://onsi.github.io/ginkgo/#running-tests
@find . -name '*.coverprofile' -exec rm {} \;
@$(GINKGO) -r -v -cover --failFast -requireSuite -covermode count -outputdir=$(BUILD_PATH) -coverprofile=monoskope.coverprofile

go-test-ci: ## run all tests in CICD
# https://onsi.github.io/ginkgo/#running-tests
@find . -name '*.coverprofile' -exec rm {} \;
@$(GINKGO) -r -cover --failFast -requireSuite -covermode count -outputdir=$(BUILD_PATH) -coverprofile=monoskope.coverprofile

go-coverage: ## print coverage from coverprofiles
Expand Down