Title here
Summary here
This guide is still work in progress.
Let’s assume you have a Go project and you want to use the GitLab CI/CD components of Release Process to build and test your project.
All you have to do is to create a .gitlab-ci.yml file in the root of your project and include the release-process/go-binary/pipeline component.
.gitlab.ci.yml
include:
- component: gitlab.com/release-process/golang/pipeline@v0.1.0This will create a pipeline that lints, tests and builds your Go project.
The pipeline will consist of
golang:golangci-lint job that runs the golangci-lint lintergolang:go-test job that runs the go test ./... commandgolang:go-build job that builds your project using go build.