From 4bc6cded97e5aeed5fbed4acdebd2eb7ef039a31 Mon Sep 17 00:00:00 2001 From: Paul Maruhn <paulmaruhn@posteo.de> Date: Fri, 17 Dec 2021 00:43:56 +0100 Subject: [PATCH] check shell scripts --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cbfc8fb..78d6472 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,3 +13,10 @@ ansible_lint: - apt install -qq -y ansible-lint script: - ansible-lint playbook.yml + +shellcheck: + stage: test + before_script: + - apt update && apt install -y shellcheck + script: + - find ./roles/ -name "*.sh" -exec shellcheck "{}" \+ -- GitLab