From cc4d8ef5ba6c1ca2b246c7d4d70dbca41251ac62 Mon Sep 17 00:00:00 2001 From: Ruidy Date: Tue, 22 Feb 2022 17:53:36 -0400 Subject: [PATCH] use codecov github actions --- .github/workflows/tests.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 5699165..9ca311c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -6,7 +6,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@master with: fetch-depth: 2 - uses: actions/setup-go@v2 @@ -15,4 +15,12 @@ jobs: - name: Run coverage run: go test -race -coverprofile=coverage.out -covermode=atomic - name: Upload coverage to Codecov - run: bash <(curl -s https://codecov.io/bash) \ No newline at end of file + run: bash <(curl -s https://codecov.io/bash) + - uses: codecov/codecov-action@v2 + with: + token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos + files: ./coverage.out # optional + flags: unittests # optional + name: codecov-umbrella # optional + fail_ci_if_error: true # optional (default = false) + verbose: true # optional (default = false) \ No newline at end of file