Skip to content

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

Merged
jrfnl merged 1 commit into
mainfrom
feature/ghactions-setup-php-fail-fast
Jul 26, 2026
Merged

jrfnl merged 1 commit into
mainfrom
feature/ghactions-setup-php-fail-fast

Conversation

@jrfnl

@jrfnl jrfnl commented Jul 26, 2026

Copy link
Copy Markdown
Member

Description

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
@github-actions

Copy link
Copy Markdown

=== This is an auto-generated comment ===

Thank you for your PR.
A dry-run has been executed on your PR, executing all markdown pre-processing for the wiki files.

Please review the resulting final markdown files via the created artifact.
This is especially important when adding new pages or updating auto-generated output blocks.

N.B.: the above link will automatically be updated when this PR is updated.

@jrfnl
jrfnl merged commit e3fd5d5 into main Jul 26, 2026
16 checks passed
@jrfnl
jrfnl deleted the feature/ghactions-setup-php-fail-fast branch July 26, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant