Added codecov

This commit is contained in:
Shivam Sharma 2022-03-16 13:47:45 +05:30
parent 7b49cb0bbc
commit 3c051f074c
2 changed files with 6 additions and 1 deletions

View file

@ -13,3 +13,8 @@ jobs:
run: make all run: make all
- name: "Run tests" - name: "Run tests"
run: make test run: make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./cover.out

View file

@ -50,7 +50,7 @@ ios:
test: test:
# Skip mobile and cmd tests since they are being deprecated # Skip mobile and cmd tests since they are being deprecated
go test -v $$(go list ./... | grep -v go-ethereum/cmd/) go test -v $$(go list ./... | grep -v go-ethereum/cmd/) -cover -coverprofile=cover.out
lint: ## Run linters. lint: ## Run linters.
$(GORUN) build/ci.go lint $(GORUN) build/ci.go lint