[DOC-CVS] [doc-en] master: GH Actions: fail "setup-php" if requested tooling/extensions could not be installed (#5714)

[email protected] (Juliette via GitHub) Tue, 28 Jul 2026 14:41:19 +0000
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Juliette (jrfnl)
Committer: GitHub (web-flow)
Pusher: jordikroon
Date: 2026-07-28T16:41:16+02:00

Commit: https://github.com/php/doc-en/commit/8e890234cf0fafc035a1dc9142b94ae5de78c90a
Raw diff: https://github.com/php/doc-en/commit/8e890234cf0fafc035a1dc9142b94ae5de78c90a.diff

GH Actions: fail "setup-php" if requested tooling/extensions could not be installed (#5714)

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 run/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

Co-authored-by: jrfnl <[email protected]>

Changed paths:
  M  .github/workflows/docbook-cs.yaml


Diff:

diff --git a/.github/workflows/docbook-cs.yaml b/.github/workflows/docbook-cs.yaml
index 498bb492600a..81fbddfc284f 100644
--- a/.github/workflows/docbook-cs.yaml
+++ b/.github/workflows/docbook-cs.yaml
@@ -74,6 +74,8 @@ jobs:
           php-version: "8.5"
           extensions: "dom, libxml, simplexml"
           tools: composer, cs2pr
+        env:
+          fail-fast: true
 
       - name: "Build documentation"
         run: |