ldc-shared-ci/lint/phpcs.yml
Administrator 5400609e45 Update 6 files
- /build/docker.yml
- /README.md
- /deploy/deploy.yml
- /deploy/kubernetes.yml
- /lint/phpcs.yml
- /lint/lint.yml
2023-02-28 12:09:24 +00:00

19 lines
629 B
YAML

phpcs:
stage: coding-standards
image: $CI_REGISTRY/ldc-web/projets/ldc-web-images-docker/ldcweb-qa:php8.1-1.0
before_script:
- composer config gitlab-token.lab.s-web.fr $CI_DEPLOY_USER $CI_DEPLOY_PASSWORD
- composer install
script:
- vendor/bin/phpcs --report=junit --report-file=phpcs-report.xml
artifacts:
when: on_failure
expose_as: 'phpcs'
paths:
- phpcs-report.xml
reports:
junit: phpcs-report.xml
allow_failure: false
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == "develop"