fuzzyworld

find-stone-beer / commit

Adding gitlab CI config for building, testing, and running the project.

8e00f64ed481aa758ca7db3cb0593677de2052d1 · Pavel Safronov · 2023-08-23 11:47:48 -0700 · parents af71e51ade20

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