From d77bcd7c1253da04507c77b940b735b8b5079758 Mon Sep 17 00:00:00 2001 From: Jan Wennrich <jan.wennrich@pcsg.de> Date: Fri, 14 Apr 2023 13:52:11 +0000 Subject: [PATCH] ci: add phpcs test job --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8b44725..cb6718e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,16 @@ include: - project: 'quiqqer/semantic-release' file: '/ci-templates/.gitlab-ci.yml' + +phpcs: + image: composer:2 + stage: test + script: + - composer require --dev micheh/phpcs-gitlab + - vendor/bin/phpcs --report=full --report-\\Micheh\\PhpCodeSniffer\\Report\\Gitlab=phpcs-quality-report.json + artifacts: + reports: + codequality: phpcs-quality-report.json #stages: # - lint # - release -- GitLab