ldc-shared-ci/lint/phpstan.yml
Vincent BRIDIER c53353ca78 Add PHPSTAN
2024-01-29 09:18:50 +00:00

18 lines
590 B
YAML

phpstan:
stage: lint
image: $CI_REGISTRY/ldc-web/projets/ldc-web-images-docker/ldcweb-qa-8.2:latest
before_script:
- composer config gitlab-token.lab.s-web.fr $CI_DEPLOY_USER $CI_DEPLOY_PASSWORD
- composer install --no-scripts
script:
- vendor/bin/phpstan --error-format=junit > phpstan-report.xml
artifacts:
when: on_failure
expose_as: 'phpstan'
paths:
- phpstan-report.xml
reports:
junit: phpstan-report.xml
allow_failure: true
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"