Closed pashagolub closed 2 years ago
Same here, it fails for me too.
You can try https://github.com/mattn/goveralls#github-actions. @pashagolub
I did thanks
Good question ;) I'll check it in the next days
@pashagolub I can't find where this reference to go 1.13
is coming from. Any ideas?
Sorry. No idea. But my other projects suffers from the very same error: https://github.com/cybertec-postgresql/pg_timetable/runs/6518909375
In my case I solved it by adding this as a step before gcov2lcov
:
- name: Set up GOPATH
shell: bash
run: |
echo "GOROOT=$(go env GOROOT)" >> "$GITHUB_ENV"
I was able to reproduce the problem as follows:
go mod download
go test -v -coverprofile=profile.cov
GOROOT
environment variable (unset GOROOT
)gcov2lcov-linux-amd64 -infile profile.cov -outfile profile.lcov
This results in warnings like:
022/05/23 16:00:58 warn: go/build: importGo github.com/pashagolub/pgxmock/: exit status 2
go: cannot find GOROOT directory: /opt/hostedtoolcache/go/1.13.15/x64
However, if GOROOT
is set properly, everything works fine. The reason that GOROOT
is no longer set is because of a change in the setup-go action, which was recently introduced. I'll see how I can fix it...
@pashagolub I fixed the problem by always setting GOROOT
before calling gcov2lcov
and released a new version.
Just use the v1
tag like in jandelgado/gcov2lcov-action@v1
to use the up-to-date version.
One of the latest runs of my workflow failed:
Is it because runner doesn't have Go v1.13 installed anymore?