Skip to content

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

Merged
jrfnl merged 1 commit intotrunkfrom
JRF/ghactions-setup-php-fail-fast
Dec 31, 2025
Merged

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

Conversation

@jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Dec 31, 2025

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
@coveralls
Copy link

Pull Request Test Coverage Report for Build 20625530734

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 45.469%

Totals Coverage Status
Change from base Build 20625511312: 0.0%
Covered Lines: 1164
Relevant Lines: 2560

💛 - Coveralls

@jrfnl jrfnl merged commit e4048f2 into trunk Dec 31, 2025
26 checks passed
@jrfnl jrfnl deleted the JRF/ghactions-setup-php-fail-fast branch December 31, 2025 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants