ci: use sed to remove generated files

This commit is contained in:
c9s 2022-06-14 13:19:55 +08:00
parent f4c3573343
commit ae41a45393
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -63,10 +63,14 @@ jobs:
run: go build -v ./cmd/bbgo run: go build -v ./cmd/bbgo
- name: Test - 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 - 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 - name: Upload Coverage Report
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3