From b1884bd0292985515b5dc0844b2b925b4d61aee5 Mon Sep 17 00:00:00 2001 From: Tianpeng Wang Date: Thu, 17 Dec 2020 10:52:52 +0800 Subject: [PATCH] feat: Add codecov support --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1060eb..50d8265 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,5 +23,10 @@ jobs: - name: Checkout code uses: actions/checkout@v2 + - name: Install dependencies + run: go get github.com/go-playground/overalls + - name: Go test - run: go test -race ./... + run: overalls -covermode=atomic -outfile=coverage.txt -- -race + + - uses: codecov/codecov-action@v1