From ae41a45393236f04b139d70b47eb4023838dd4ab Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 14 Jun 2022 13:19:55 +0800 Subject: [PATCH] ci: use sed to remove generated files --- .github/workflows/go.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d46599eed..dc75db151 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -63,10 +63,14 @@ jobs: run: go build -v ./cmd/bbgo - name: Test - run: go test -race -coverprofile coverage.txt -covermode atomic ./pkg/... + run: | + go test -race -coverprofile coverage.txt -covermode atomic ./pkg/... + sed -i -e '/_requestgen.go/d' coverage.txt - name: TestDnum - run: go test -race -coverprofile coverage_dnum.txt -covermode atomic -tags dnum ./pkg/... + run: | + go test -race -coverprofile coverage_dnum.txt -covermode atomic -tags dnum ./pkg/... + sed -i -e '/_requestgen.go/d' coverage_dnum.txt - name: Upload Coverage Report uses: codecov/codecov-action@v3