From 664718934e1828cb410ffeebc3b30eacd4a17c73 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 26 Jul 2026 18:39:45 +0200 Subject: [PATCH] GH Actions: fail "setup-php" if requested tooling could not be installed 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/workflows/reusable-qa-checks.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/reusable-qa-checks.yml b/.github/workflows/reusable-qa-checks.yml index 0ac28a8..8880ce0 100644 --- a/.github/workflows/reusable-qa-checks.yml +++ b/.github/workflows/reusable-qa-checks.yml @@ -71,6 +71,8 @@ jobs: php-version: ${{ matrix.php }} ini-values: error_reporting=E_ALL, display_errors=On, display_startup_errors=On coverage: none + env: + fail-fast: true - name: Conditionally update PHPCompatibility to develop version if: ${{ matrix.phpcompat != 'stable' }}