From c2ea1989a85c5be1e5b0fb272514c747300e7498 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Tue, 15 Mar 2022 21:40:04 +0100 Subject: [PATCH] Update codecov.yml --- .github/workflows/codecov.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 7799110..bda7679 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -23,7 +23,19 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@master - - uses: codecov/codecov-action@v2 + - name: Checkout Code + uses: actions/checkout@master + + - name: Install Dependencies + run: go get -v golang.org/x/lint/golint + + - name: Run Tests + run: | + golint -set_exit_status ./... + go test -race --coverprofile=coverage.coverprofile --covermode=atomic ./... + + - name: Upload coverage to Codecov + if: success() && matrix.go == 1.17 && matrix.os == 'ubuntu-latest' + uses: codecov/codecov-action@v2 with: token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos