diff --git a/.github/workflows/common-ci.yml b/.github/workflows/common-ci.yml index 4243f5a..505f6bc 100644 --- a/.github/workflows/common-ci.yml +++ b/.github/workflows/common-ci.yml @@ -35,7 +35,13 @@ jobs: run: go mod download - name: Run tests working-directory: ${{ inputs.module }} - run: go test -v -race -failfast -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... + run: go test -v -race -failfast -coverpkg=./... -covermode=atomic -coverprofile=coverage.tmp.out ./... + - name: Exclude testdata + working-directory: ${{ inputs.module }} + run: cat coverage.tmp.out | grep -v "testdata" > coverage.out + - name: Clean temp coverage + working-directory: ${{ inputs.module }} + run: rm coverage.tmp.out - name: Codecov uses: codecov/codecov-action@v3 with: