diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9bbf5fe1..db31e7dac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,3 +13,7 @@ jobs: run: make all - name: "Run tests" run: make test + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + file: ./cover.out \ No newline at end of file diff --git a/Makefile b/Makefile index 5466bf907..10bc52530 100644 --- a/Makefile +++ b/Makefile @@ -47,8 +47,7 @@ ios: test: all # $(GORUN) build/ci.go test - go test github.com/ethereum/go-ethereum/consensus/bor - go test github.com/ethereum/go-ethereum/tests/bor + go test --timeout 5m -cover -short -coverprofile=cover.out -covermode=atomic ./consensus/bor ./tests/bor lint: ## Run linters. $(GORUN) build/ci.go lint