setup-php should fail when it's unable to install the requested PHP version
Version
[x] 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
This happens intermittently but quite often, so I couldn't run it with debugging enabled.
Describe the feature
setup-php
should fail when it's unable to install the requested PHP versionVersion
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
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.