Skip to content

Commit

Permalink
Fix GOROOT (#7)
Browse files Browse the repository at this point in the history
make sure GOROOT is set correctly
because it is overriden on `docker run` when run in github-actions

update to gcov2lcov v1.0.4
  • Loading branch information
jandelgado committed Oct 7, 2020
1 parent cb28548 commit e214122
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -23,7 +23,7 @@ No outputs.
## Example usage

```yaml
uses: jandelgado/gcov2lcov-action@v1.0.3
uses: jandelgado/gcov2lcov-action@v1.0.4
with:
infile: coverage.out
outfile: coverage.lcov
Expand All @@ -39,20 +39,20 @@ with:
if: success()
uses: actions/setup-go@v1
with:
go-version: 1.13.x
go-version: 1.15.x
- name: Checkout code
uses: actions/checkout@v1
- 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.3
uses: jandelgado/gcov2lcov-action@v1.0.4
with:
infile: coverage.out
outfile: coverage.lcov
- name: Coveralls
uses: coverallsapp/github-action@v1.0.3
uses: coverallsapp/github-action@v1.0.4
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov
Expand Down
3 changes: 2 additions & 1 deletion entrypoint.sh
Expand Up @@ -2,6 +2,7 @@
set -eu

unset GOPATH
export GOROOT=/usr/local/go

cd $GITHUB_WORKSPACE
/app/gcov2lcov-linux-amd64 -infile "$INPUT_INFILE" -outfile "$INPUT_OUTFILE"
exec /app/gcov2lcov-linux-amd64 -infile "$INPUT_INFILE" -outfile "$INPUT_OUTFILE"

0 comments on commit e214122

Please sign in to comment.