[doc-en] master: GH Actions: fail "setup-php" if requested tooling/extensions could not be installed (#5714)
| From: | Juliette via GitHub | Date: | Tue, 28 Jul 2026 14:41:19 +0000 |
| Subject: | [doc-en] master: GH Actions: fail "setup-php" if requested tooling/extensions could not be installed (#5714) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23514@lists.php.net to get a copy of this message | ||
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 <jrfnl@users.noreply.github.com>
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: |