From 278f3ea6ed143aab4603f51e77641232a83038de Mon Sep 17 00:00:00 2001 From: debugtalk Date: Thu, 30 Sep 2021 17:39:49 +0800 Subject: [PATCH] change: replace with codecov-action --- .github/workflows/main.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 502bf0d5..a0c2c2d8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,6 +30,11 @@ jobs: - name: Run coverage run: go test -race -coverprofile="cover.out" -covermode=atomic ./... - name: Upload coverage to Codecov - if: success() - run: curl -s https://codecov.io/bash | bash - shell: bash + uses: codecov/codecov-action@v2 + with: + name: httpboomer # User defined upload name. Visible in Codecov UI + token: ${{ secrets.CODECOV_TOKEN }} # Repository upload token + file: ./cover.out # Path to coverage file to upload + flags: unittests # Flag upload to group coverage metrics + fail_ci_if_error: true # Specify whether or not CI build should fail if Codecov runs into an error during upload + verbose: true