From e214122aed770dee55f66fe60f5bec2102a3f42b Mon Sep 17 00:00:00 2001 From: jandelgado Date: Wed, 7 Oct 2020 22:34:55 +0200 Subject: [PATCH] Fix GOROOT (#7) make sure GOROOT is set correctly because it is overriden on `docker run` when run in github-actions update to gcov2lcov v1.0.4 --- README.md | 8 ++++---- entrypoint.sh | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d09617b..7d2b2a4 100644 --- a/README.md +++ b/README.md @@ -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 @@ -39,7 +39,7 @@ 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 @@ -47,12 +47,12 @@ with: 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 diff --git a/entrypoint.sh b/entrypoint.sh index 58c83a9..153b821 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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"