From 3c051f074c0c33cc28a9edb84f7084c743c30a09 Mon Sep 17 00:00:00 2001 From: Shivam Sharma Date: Wed, 16 Mar 2022 13:47:45 +0530 Subject: [PATCH] Added codecov --- .github/workflows/ci.yml | 5 +++++ Makefile | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1badac12e..d61e14cb42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,3 +13,8 @@ jobs: run: make all - name: "Run tests" run: make test + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + file: ./cover.out + diff --git a/Makefile b/Makefile index 478b6fd9ad..09f981c659 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,7 @@ ios: test: # 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. $(GORUN) build/ci.go lint