From 1d8b4f27b13073c3168167a66d888f802441aa8b Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Thu, 6 Mar 2025 11:26:17 +0100 Subject: [PATCH] feat: initial commit --- .gitignore | 1 + .gitlab-ci.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .gitignore create mode 100644 .gitlab-ci.yml 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"