From 0f635c43d9691188d30fb2369fa3efde68155258 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 16 Jul 2022 12:49:03 -0700
Subject: [PATCH] Test linting for configurations

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..3adb3a0
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,18 @@
+before_script:
+  - |
+    apt-get update
+    apt-get -y --no-install-recommends install jq
+    apt-get clean
+    rm -rf /var/lib/apt/lists/*
+
+Lint:plugins:default:
+  stage: test
+  image: containers.ethitter.com:443/docker/images/debian:bullseye
+  script:
+    - |
+      jq --null-input --arg yaml "$(<./plugins/default.yml)" '.content=$yaml' \
+      | curl "https://git.ethitter.com/api/v4/ci/lint?include_merged_yaml=true" \
+        --header 'Content-Type: application/json' \
+        --header 'PRIVATE_TOKEN: $CI_JOB_TOKEN' \
+        --data @- \
+      | jq --raw-output '.merged_yaml | fromjson'
-- 
GitLab