From 4fa3fb64863f527f67bc8469ae26d1be7388f7d9 Mon Sep 17 00:00:00 2001 From: Hongchao Deng Date: Fri, 16 Oct 2020 16:44:35 -0700 Subject: [PATCH] move codecov upload to github workflow --- .github/workflows/go.yml | 8 ++++++++ hack/unit_test.sh | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6627f2034..c61065f02 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -35,3 +35,11 @@ jobs: - name: Run Make test run: make test + + - name: Upload coverage report + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.txt + flags: unittests + name: codecov-umbrella diff --git a/hack/unit_test.sh b/hack/unit_test.sh index 36a423b1e..b270cc9e6 100755 --- a/hack/unit_test.sh +++ b/hack/unit_test.sh @@ -10,6 +10,3 @@ for d in $(go list ./pkg/... ./cmd/...); do rm profile.out fi done - -bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN -