buildkite / templates

Buildkite pipeline templates
https://buildkite.com/pipelines/templates
MIT License
2 stars 1 forks source link

Add CI template for Go #47

Closed clbarrell closed 7 months ago

clbarrell commented 9 months ago

This PR drops in a CI template for building and testing a golang application.

Modules are downloaded using go mod vendor and used across subsequent steps in order to allow for step parallelisation.

Something of note: I switched over from the cache-plugin to the artifacts-plugin. This works much better in development and kinda just reads better.

https://github.com/buildkite-plugins/artifacts-buildkite-plugin

dannymidnight commented 9 months ago

To keep the IDs consistent, I reckon we go with golang-ci for the folder name of this pipeline.

olyism commented 9 months ago

To keep the IDs consistent, I reckon we go with golang-ci for the folder name of this pipeline.

Sounds good. I'll push up a commit soon

dannymidnight commented 9 months ago

Another possible handy command in a go CI pipeline is testing that go generate doesn't produce any output.

olyism commented 9 months ago

Another possible handy command in a go CI pipeline is testing that go generate doesn't produce any output.

TIL 💡 I added this step.

Ready for review.

dannymidnight commented 7 months ago

Heads up @olyism, I'm going to take this one over.