Skip to content

Commit

Permalink
Add debug to test when running in Github task
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
  • Loading branch information
peterbroadhurst committed Oct 11, 2021
1 parent f70d027 commit f9c13fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
sudo chmod 755 /usr/local/bin/solc
- name: Build and Test
env:
TEST_DEBUG_FLAGS: -v
run: cd ethconnect && make

- name: Upload coverage
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ BINARY_NAME=ethconnect
BINARY_UNIX=$(BINARY_NAME)-tux
BINARY_MAC=$(BINARY_NAME)-mac
BINARY_WIN=$(BINARY_NAME)-win
TEST_DEBUG_FLAGS?=

GOBIN := $(shell $(VGO) env GOPATH)/bin
MOCKERY := $(GOBIN)/mockery
Expand All @@ -23,7 +24,7 @@ delv-ethbinding: force
# "plugin was built with a different version of package runtime/internal/sys"
go build -buildmode=plugin -gcflags='all=-N -l' github.com/kaleido-io/ethbinding
coverage.txt: $(GOFILES)
$(VGO) test ./... -cover -coverprofile=coverage.txt -covermode=atomic -timeout 30s
$(VGO) test ./... ${TEST_DEBUG_FLAGS} -cover -coverprofile=coverage.txt -covermode=atomic -timeout 30s
coverage.html:
$(VGO) tool cover -html=coverage.txt
test: coverage.txt
Expand Down

0 comments on commit f9c13fd

Please sign in to comment.