Fix workflow

gcov2lcov seems failing to handle coverpkg?
This commit is contained in:
yuin 2019-11-18 16:06:33 +09:00
parent 22bbda3653
commit c999f5a9a7

View file

@ -16,16 +16,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v1
- name: Run tests
run: go test -v -cover ./... -covermode=count -coverprofile=coverage.out -coverpkg=./...
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.0
run: go test -v ./... -covermode=count -coverprofile=coverage.out -coverpkg=./...
- name: Send coverage
if: "matrix.platform == 'ubuntu-latest'"
with:
infile: coverage.out
outfile: coverage.lcov
- name: Coveralls
uses: coverallsapp/github-action@v1.0.1
if: "matrix.platform == 'ubuntu-latest'"
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=coverage.out -service=github