From affb6ea89aa95474496e781a191f6846efb620b4 Mon Sep 17 00:00:00 2001 From: Vitaly Isaev Date: Fri, 29 Dec 2023 15:17:13 +0300 Subject: [PATCH] Add ignore list for CodeCov (#21) --- .github/workflows/build.yml | 4 ++-- codecov.yml | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 codecov.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6ec68924..8d2dfbcc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,8 +40,8 @@ jobs: ./fq-connector-go-tests -projectPath=$(pwd) -test.coverprofile=coverage_integration_tests.out - name: Union coverage run: | - cat coverage_unit_tests.out | grep -v 'pb.go\|mock.go\|library' > coverage.out - cat coverage_integration_tests.out | grep -v 'atomic\|pb.go\|mock.go\|library' >> coverage.out + cat coverage_unit_tests.out > coverage.out + cat coverage_integration_tests.out | grep -v 'mode: atomic' >> coverage.out go tool cover -func=coverage.out - name: Upload coverage to Codecov uses: codecov/codecov-action@v4-beta diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..a4f1d317 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,4 @@ +ignore: + - "api" + - "library" + - "*_mock.go"