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