Skip to content

GH Actions: fail "setup-php" if requested tooling could not be installed - #376

Merged
sirbrillig merged 1 commit into
sirbrillig:trunkfrom
jrfnl:feature/ghactions-setup-php-fail-fast
Jul 27, 2026
Merged

GH Actions: fail "setup-php" if requested tooling could not be installed#376
sirbrillig merged 1 commit into
sirbrillig:trunkfrom
jrfnl:feature/ghactions-setup-php-fail-fast

Conversation

@jrfnl

@jrfnl jrfnl commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Setup-PHP will normally "gracefully" show a warning and not fail the build when an extension or tool failed to install.

In most cases, this is not particularly useful as that means that either there will be a failure later on in the build due to the extension or tool missing, or the build will not be representative of what is supposed to be tested.

This commit changes this behaviour to fail select builds at the setup-php step, which also makes debugging these type of build failures much more straight-forward.

Ref: https://github.com/shivammathur/setup-php?tab=readme-ov-file#fail-fast-optional

Setup-PHP will normally "gracefully" show a warning and not fail the build when an extension or tool failed to install.

In most cases, this is not particularly useful as that means that either there will be a failure later on in the build due to the extension or tool missing, or the build will not be representative of what is supposed to be tested.

This commit changes this behaviour to fail select builds at the `setup-php` step, which also makes debugging these type of build failures much more straight-forward.

Ref: https://github.com/shivammathur/setup-php?tab=readme-ov-file#fail-fast-optional
@jrfnl jrfnl added the github_actions Pull requests that update GitHub Actions code label Jul 26, 2026
@sirbrillig
sirbrillig merged commit 282f8a4 into sirbrillig:trunk Jul 27, 2026
58 of 62 checks passed
@jrfnl
jrfnl deleted the feature/ghactions-setup-php-fail-fast branch July 27, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants