Skip to content

Fail if setup-php was unable to install the requested PHP version #709

@weirdan

Description

@weirdan

Describe the feature

setup-php should fail when it's unable to install the requested PHP version

Version

  • I have checked releases, and the feature is missing in the latest patch version of v2.

Underlying issue

Currently, when setup-php fails to set up the requested PHP version, the build continues with the PHP version provided by the runner environment, which may not be compatible with the software being built/tested.

Describe alternatives

I tried to use env: fail-fast: true to no avail.

Additional context

image

This happens intermittently but quite often, so I couldn't run it with debugging enabled.

https://github.com/vimeo/psalm/actions/runs/4401974668/jobs/7708673538

Are you willing to submit a PR?

I'm not sure I'll be able to do this.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions