diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8564b01..9678717 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,8 +37,10 @@ jobs: with: version: "v1.59" - run: "go test -v -race -coverprofile=coverage.txt -covermode=atomic ./netpunchlib/..." + - run: "grep -v netpunchlib/internal/mock/connection.go coverage.txt >coverage-clean.txt" + - run: "rm coverage.txt" # otherwise it will be taken into account - uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} # required - files: ./coverage.txt + files: ./coverage-clean.txt verbose: true diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..fe19d2f --- /dev/null +++ b/codecov.yml @@ -0,0 +1,8 @@ +# do not forget to validate it +# curl --data-binary @codecov.yml https://codecov.io/validate + +comment: off +coverage: + precision: 2 + range: [50, 75] + round: up