phpstan jobs fails at GitLab

Created on 27 October 2023, about 1 year ago
Updated 8 November 2023, about 1 year ago

Problem/Motivation

A new phpstan job was recently added β†’ to GitLab configuration for contrib modules.

However, it's failing for us while trying to run the executable:
https://git.drupalcode.org/project/single_content_sync/-/jobs/237949
Could not open input file: vendor/bin/phpstan

Upon further investigation, it seems like it's happening since we're using Drupal core 9.5.11 for running CI jobs which doesn't have phpstan composer dependency.

Steps to reproduce

Check latest pipelines logs.

Proposed resolution

Remove PHP and core versions variables form .gitlab-ci.yml and see if it fixes phpstan job.

Remaining tasks

  1. Update gitlab CI config.
  2. Fix code issues reported by phpstan, if there are any.
πŸ› Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine abramm Lutsk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024