mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Fix workflow
gcov2lcov seems failing to handle coverpkg?
This commit is contained in:
parent
22bbda3653
commit
c999f5a9a7
1 changed files with 7 additions and 12 deletions
19
.github/workflows/test.yaml
vendored
19
.github/workflows/test.yaml
vendored
|
|
@ -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
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue