gcov2lcov-action
ActionsTags
(2)Convert golang coverage files to lcov format. Works nicely with the coveralls github action and uses gcov2lcov under the hood.
Required Name of the go coverage file. Default coverage.out
.
Required Name of the lcov file to write. Default coverage.lcov
.
No outputs.
uses: jandelgado/gcov2lcov-action@v1.0.4
with:
infile: coverage.out
outfile: coverage.lcov
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v2-beta
- name: Checkout code
uses: actions/checkout@v2
- name: Calc coverage
run: |
export PATH=$PATH:$(go env GOPATH)/bin
go test -v -covermode=count -coverprofile=coverage.out
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.5
with:
infile: coverage.out
outfile: coverage.lcov
- name: Coveralls
uses: coverallsapp/github-action@v1.0.4
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov
See also example repository.
Copyright © 2019 - 2020 Jan Delgado
gcov2lcov-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.
Tags
(2)gcov2lcov-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.