From b0f84f94c49d4d09d6928118b6f6ab8ac3d14807 Mon Sep 17 00:00:00 2001 From: bladehan1 Date: Mon, 19 Jun 2023 11:10:09 +0800 Subject: [PATCH] ci: add Codecov --- .github/workflows/ci.yml | 4 ++++ Makefile | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) 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