ldc-shared-ci/lint/phpstan8.3.yml
2024-02-21 11:35:53 +01:00

18 lines
546 B
YAML

phpstan:
stage: lint
image: $CI_REGISTRY/ldc-web/projets/ldc-web-images-docker/ldcweb-qa-8.3: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"