Skip to content

Action fails with a vague error if no phpunit version specified in YAML or composer.json/lock - phpunit: line 2: syntax error: unexpected newline #78

@peternewman

Description

@peternewman

These changes:
https://github.com/php-actions/example-phpunit/compare/master...peternewman:example-phpunit:peternewman-test-breaking?expand=1

Are sufficient to generate

/usr/local/bin/phpunit: line 2: syntax error: unexpected newline
Error: Process completed with exit code 2.

Rather than say using the latest version.

Confusingly, /usr/local/bin/phpunit exists at this point, and appears to have valid code in it (unless this is local, rather than within Docker or something

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions