diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3181036..154fe4d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -43,9 +43,12 @@ jobs: go-version-file: ./go.mod - name: Run tests - run: go test -v ./... + run: go test -race -coverprofile=coverage.txt -covermode=atomic -v ./... + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 env: - CGO_ENABLED: 0 + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} build: runs-on: ubuntu-latest