From d6c3fbd237cc1f09812fa94d1ef8262e8cc4a3d1 Mon Sep 17 00:00:00 2001
From: Thomas Schneider <thomas@fsmpi.rwth-aachen.de>
Date: Thu, 23 Jun 2022 16:08:00 +0200
Subject: [PATCH] Add GitLab CI config

---
 .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..c10ee44
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,30 @@
+---
+
+variables:
+  GOCACHE: $CI_PROJECT_DIR/.gocache
+  GOPATH: $CI_PROJECT_DIR/.go
+
+cache:
+  paths:
+    - .gocache
+    - .go
+
+lint:
+  image: golangci/golangci-lint:v1.46-alpine
+  stage: test
+  script:
+    - >-
+      golangci-lint
+      run
+      -v
+      --max-issues-per-linter=0
+      --max-same-issues=0
+      --out-format=junit-xml
+      --timeout=10m
+      > golangci-output.xml
+  artifacts:
+    paths:
+      - golangci-output.xml
+    reports:
+      junit: golangci-output.xml
+    expire_in: 7 days
-- 
GitLab