-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CI by ensuring gotestfmt
is on PATH, plus cleanups
#634
Conversation
This was my first attempt to fix CI. Go 1.17 is no longer available on runners (actions/runner-images#7276 maybe) and I wondered if that might help with that. Unfortunately I think not. But we should get some go build caching as a side effect of using this action.
Drive-by fix for matrix-org/synapse#14203
no `-version` flag, so `help` will have to do
IDK why this suddenly started failing, but `go install` seems to put it on the PATH in a way that makes CI work.
gotestfmt
is on PATH, plus cleanups
run: | | ||
sudo apt-get update && sudo apt-get install -y libolm3 libolm-dev | ||
go get -v github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest | ||
go install -v github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a version of go changing stuff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so. I didn't dig too hard here!
mkdir .gotestfmt/github -p | ||
cp .ci/complement_package.gotpl .gotestfmt/github/package.gotpl | ||
gotestfmt -help |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just to fail fast if it doesn't exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly!
See commits for details.