Skip to content
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

Merged
merged 4 commits into from
Apr 6, 2023
Merged

Conversation

DMRobertson
Copy link
Contributor

See commits for details.

David Robertson added 4 commits April 6, 2023 14:31
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.
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.
@DMRobertson DMRobertson changed the title Fix CI again Fix CI by ensuring gotestfmt is on PATH, plus cleanups Apr 6, 2023
@DMRobertson DMRobertson marked this pull request as ready for review April 6, 2023 13:34
@DMRobertson DMRobertson requested review from a team as code owners April 6, 2023 13:34
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
Copy link
Contributor

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?

Copy link
Contributor Author

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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly!

@DMRobertson DMRobertson merged commit bcc2bce into main Apr 6, 2023
4 checks passed
@DMRobertson DMRobertson deleted the dmr/fix-ci branch April 6, 2023 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants