Skip to content

RoboFile related error #189

@Guite

Description

@Guite

Hello,

trying to get PHPQA running in a CI job using GitHub actions. But I am not able to cope with an error message - maybe just an obvious beginner issue.

Here is what I did so far:

Installed version 1.23.2 using composer.

Added a .phpqa.yml file containing:

phpqa.analyzedDirs: ./src/
phpqa.ignoredDirs: vendor
phpqa.report: true
phpqa.output: cli

Running these commands:

php ./vendor/bin/phpqa-extensions.php --add phpa phpca phpmnd

./vendor/bin/phpqa

Which results in this error:

PHP Fatal error:  Uncaught Error: Class 'RoboFile' not found in /home/runner/work/.../vendor/consolidation/robo/src/Runner.php:61
Stack trace:
#0 /home/runner/work/.../vendor/edgedesign/phpqa/phpqa(55): Robo\Runner->execute(Array)
#1 {main}
  thrown in /home/runner/work/.../vendor/consolidation/robo/src/Runner.php on line 61

Originally I had no YAML file, but added the parameters as CLI arguments. Did not change anything, same error occured.

Any idea what I am missing here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions