How to implement continuous integration for go language?

How to implement continuous integration for go language?
Any idea or steps?
Thanks.

What CI provider do you use?

Basically it is the same everywhere, use a service/image that has go available or install it on a base service/image depending on the provider. Then check out your source code into an appropriate place, and provide a script that runs got get package-name/...; go test package-name/...; go build package-name or whatever is necessary from your point of view.

If you use go-modules, you might need to alter the script accordingly, I haven’t used them so far.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.