18 lines
527 B
YAML
18 lines
527 B
YAML
phpcs:
|
|
stage: lint
|
|
image: composer:2.10
|
|
before_script:
|
|
- composer config gitlab-token.lab.s-web.fr $CI_DEPLOY_USER $CI_DEPLOY_PASSWORD
|
|
- composer install --no-scripts
|
|
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"
|