find-stone-beer / commit
Adding gitlab CI config for building, testing, and running the project.
.gitlab-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c99721d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +image: golang:latest + +stages: + - build-and-test + - run + +before_script: + - go version + - make --version + +build-job: + stage: build-and-test + script: + - make build + - make test + +run-job: + stage: run + script: + - make run