From 0dd228e1dd6759e6f89f8d89362c6f9ff2a4ce48 Mon Sep 17 00:00:00 2001 From: Farhan Khan Date: Tue, 10 Aug 2021 03:51:07 +0000 Subject: [PATCH] Adding gitlab CI configuration --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..040804f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +image: golang:latest + +build: + stage: build + script: + - cd fedilogue + - go get . + - go build ./fedilogue + only: + - main + +test: + stage: test + script: + - cd fedilogue + - go get . + - go test -v + only: + - merge_requests