diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c8617a3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/logger diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..59dc249 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +image: "golang:alpine" +stages: + - "linter" + - "testing" + +linter: + stage: "linter" + image: "golangci/golangci-lint:latest-alpine" + script: + - "golangci-lint run" + +testing: + stage: "testing" + needs: + - "linter" + image: "cr.simoncor.net/siempie/go-build:latest" + script: + - "go test cmd/logger/*.go"