Skip to content

Commit

Permalink
Merge branch 'main' into terpay/grpc-mempool-service
Browse files Browse the repository at this point in the history
  • Loading branch information
davidterpay committed Dec 8, 2023
2 parents 22ba791 + 56eeeb3 commit 9ca608c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ jobs:
run: |
go work init
make test
- name: Test Coverage
run: |
make test-cover
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: cover.out

test-integration:
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ DOCKER := $(shell which docker)
HOMEDIR ?= $(CURDIR)/tests/.testappd
GENESIS ?= $(HOMEDIR)/config/genesis.json
GENESIS_TMP ?= $(HOMEDIR)/config/genesis_tmp.json
COVER_FILE ?= "cover.out"

###############################################################################
### Test App ###
Expand Down Expand Up @@ -133,6 +134,15 @@ test-integration: $(TEST_INTEGRATION_DEPS)
test: use-main
@go test -v -race $(shell go list ./... | grep -v tests/)

test-cover: tidy
@echo Running unit tests and creating coverage report...
@go test -mod=readonly -v -timeout 30m -coverprofile=$(COVER_FILE) -covermode=atomic $(shell go list ./... | grep -v tests/)
@sed -i '/.pb.go/d' $(COVER_FILE)
@sed -i '/.pulsar.go/d' $(COVER_FILE)
@sed -i '/.proto/d' $(COVER_FILE)
@sed -i '/.pb.gw.go/d' $(COVER_FILE)


.PHONY: test test-integration

###############################################################################
Expand Down

0 comments on commit 9ca608c

Please sign in to comment.