From 12ece48ae917b050e4b8b9e09519b83bd35e4c32 Mon Sep 17 00:00:00 2001 From: Jan Wennrich <jan.wennrich@pcsg.de> Date: Fri, 14 Apr 2023 13:33:17 +0000 Subject: [PATCH] ci: add code quality job --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8b44725..9f8e1da 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,14 @@ include: + - template: Code-Quality.gitlab-ci.yml - project: 'quiqqer/semantic-release' file: '/ci-templates/.gitlab-ci.yml' + +code_quality: + allow_failure: false + rules: + - if: $CODE_QUALITY_DISABLED + when: never + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_PROTECTED #stages: # - lint # - release -- GitLab