diff --git a/.github/codecov-ignore-generated.sh b/.github/codecov-ignore-generated.sh index 3c896d47be7..0f59b1de4a0 100755 --- a/.github/codecov-ignore-generated.sh +++ b/.github/codecov-ignore-generated.sh @@ -4,6 +4,23 @@ # # .github/codecov-ignore-generated.sh >> .github/codecov.yml +cat <>>>> $file"; cat $file; echo; done if: ${{ always() }} + - name: Ignore-list of generated files for codecov + run: | + .github/codecov-ignore-generated.sh >> .github/codecov.yml + - name: Upload bats coverage to codecov uses: codecov/codecov-action@v4 with: diff --git a/.github/workflows/go-tests-windows.yml b/.github/workflows/go-tests-windows.yml index a31e42cf702..488756d0059 100644 --- a/.github/workflows/go-tests-windows.yml +++ b/.github/workflows/go-tests-windows.yml @@ -47,6 +47,10 @@ jobs: if(!$?) { cat out.txt | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter; Exit 1 } cat out.txt | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter + - name: Ignore-list of generated files for codecov + run: | + .github/codecov-ignore-generated.sh >> .github/codecov.yml + - name: Upload unit coverage to Codecov uses: codecov/codecov-action@v4 with: diff --git a/.github/workflows/go-tests.yml b/.github/workflows/go-tests.yml index a6c72a91af6..52de434ad9b 100644 --- a/.github/workflows/go-tests.yml +++ b/.github/workflows/go-tests.yml @@ -165,6 +165,10 @@ jobs: set -o pipefail make go-acc | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter + - name: Ignore-list of generated files for codecov + run: | + .github/codecov-ignore-generated.sh >> .github/codecov.yml + - name: Upload unit coverage to Codecov uses: codecov/codecov-action@v4 with: diff --git a/.gitignore b/.gitignore index 6e6624fd282..d76efcbfc48 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,6 @@ msi __pycache__ *.py[cod] *.egg-info + +# automatically generated before running codecov +.github/codecov.yml