How to implement continuous integration for go language?


(kullboys boys) #1

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


(Norbert Melzer) #2

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.