convert 2 lcov manually
This commit is contained in:
@@ -36,11 +36,11 @@ jobs:
|
||||
go test -mod=vendor -timeout=60s -covermode=count -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp ./...
|
||||
cat $GITHUB_WORKSPACE/profile.cov_tmp | grep -v "_mock.go" > $GITHUB_WORKSPACE/profile.cov
|
||||
|
||||
- name: install golangci-lint and goveralls
|
||||
- name: install golangci-lint and coveralls support
|
||||
run: |
|
||||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $GITHUB_WORKSPACE v1.20.0
|
||||
go get -u github.com/mattn/goveralls
|
||||
ls -la $(go env GOPATH)/bin/goveralls
|
||||
go get -u github.com/jandelgado/gcov2lcov
|
||||
|
||||
|
||||
- name: run backend linters
|
||||
run: |
|
||||
@@ -51,10 +51,9 @@ jobs:
|
||||
--enable=ineffassign --enable=varcheck ./... ;
|
||||
|
||||
- name: convert coverage to lcov
|
||||
uses: jandelgado/gcov2lcov-action@v1.0.0
|
||||
with:
|
||||
infile: profile.cov
|
||||
outfile: coverage.lcov
|
||||
run: |
|
||||
cd backend
|
||||
$(go env GOPATH)/bin/gcov2lcov -infile $GITHUB_WORKSPACE/profile.cov -outfile $GITHUB_WORKSPACE/profile.cov
|
||||
|
||||
- name: submit to coveralls
|
||||
uses: coverallsapp/github-action@v1.0.1
|
||||
|
||||
Reference in New Issue
Block a user