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