Skip to content

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

Merged
jrfnl merged 1 commit intotrunkfrom
JRF/ghactions-setup-php-fail-fast
Jan 3, 2026
Merged

GH Actions: fail "setup-php" if requested tooling could not be installed#22852
jrfnl merged 1 commit intotrunkfrom
JRF/ghactions-setup-php-fail-fast

Conversation

@jrfnl
Copy link
Copy Markdown
Contributor

@jrfnl jrfnl commented Jan 3, 2026

Context

  • Improve CI

Summary

This PR can be summarized in the following changelog entry:

  • Improve CI

Relevant technical choices:

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

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 the build 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

Test instructions

Test instructions for the acceptance test before the PR gets merged

This PR can be acceptance tested by following these steps:

  • N/A

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

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 the build 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 this to the 26.8 milestone Jan 3, 2026
@jrfnl jrfnl added yoast cs/qa changelog: non-user-facing Needs to be included in the 'Non-userfacing' category in the changelog labels Jan 3, 2026
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build fb97ff516ab5e5181ee229d27751530a3c12ab20

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 52.817%

Totals Coverage Status
Change from base Build 01f7b329ab5235cf0220bceafbb8ecb3469df241: 0.0%
Covered Lines: 32260
Relevant Lines: 61134

💛 - Coveralls

@jrfnl jrfnl merged commit ee4de40 into trunk Jan 3, 2026
29 checks passed
@jrfnl jrfnl deleted the JRF/ghactions-setup-php-fail-fast branch January 3, 2026 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: non-user-facing Needs to be included in the 'Non-userfacing' category in the changelog yoast cs/qa

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants