moodlehq / moodle-plugin-ci

Helps running Moodle plugins analysis checks and tests under various CI environments.
https://moodlehq.github.io/moodle-plugin-ci/
GNU General Public License v3.0
41 stars 43 forks source link

moodle-plugin-ci phpcs fails: moodle coding standard not installed #293

Closed PhMemmel closed 3 months ago

PhMemmel commented 3 months ago

When running moodle-plugin-ci codechecker in my local gitlab pipeline, the error is reported:

RUN  Moodle CodeSniffer standard on MY_PLUGINNAME
ERROR: the "moodle" coding standard is not installed. The installed coding standards are MySource, PEAR, PSR1, PSR2, PSR12, Squiz and Zend
stronk7 commented 3 months ago

It's working for me, so far: https://github.com/moodlehq/moodle-local_codechecker/actions/runs/8263285860

I'd recommend to take a look to logs, maybe there was some networking / gha / composer problem and that caused the standard not to be installed. And, also, rerun it to see if the (bad) condition was temporal.

Ciao :-)

PhMemmel commented 3 months ago

Digged some more and found the related error message when running composer:

Composer plugins have been disabled for safety in this non-interactive session

Setting COMPOSER_ALLOW_SUPERUSER=1 when running composer solved the issue. Thank you for the feedback and sorry for the noise!