Skip to content

php: Adopt .tool-versions and standardise setup scripts - #171

Merged
adamnfish-gu merged 1 commit into
fix/phpfrom
adopt/php
Oct 19, 2026
Merged

adamnfish-gu merged 1 commit into
fix/phpfrom
adopt/php

Conversation

@adamnfish-gu

@adamnfish-gu adamnfish-gu commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

script/setup used brew and was interactive and macOS-only, alongside a separate Windows PowerShell script.

script/setup now bootstraps composer locally as composer.phar, using the official installer and verifying the signature against composer.github.io, then installs dependencies. script/test and script/start use that local composer.phar. Drops setup.ps1 and updates the README.

mise builds php from source, which needs system libraries the GitHub runner does not ship. script/system-packages installs them. It runs before the toolchain is built, so it cannot live in script/setup.


Base fix/php (#170), so the diff shows only this branch's changes. Merge #170 first.

Part of #143.

script/setup used brew and was interactive and macOS-only, alongside a
separate Windows PowerShell script.

script/setup now bootstraps composer locally as composer.phar, using the
official installer and verifying the signature against composer.github.io,
then installs dependencies. script/test and script/start use that local
composer.phar. Drops setup.ps1 and updates the README.

mise builds php from source, which needs system libraries the GitHub runner
does not ship. script/system-packages installs them. It runs before the
toolchain is built, so it cannot live in script/setup.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@emdash-ie emdash-ie left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine! I haven’t run the system-packages script locally, but it looks reasonable. I have installed PHP from my package manager and used the setup, start, and test scripts.

@emdash-ie

Copy link
Copy Markdown

I can also see the CI install and test worked fine: https://github.com/guardian/coding-exercise-project/actions/runs/37916646747/job/113774382531

@adamnfish-gu
adamnfish-gu merged commit c441e7a into main Oct 19, 2026
6 checks passed
@adamnfish-gu
adamnfish-gu deleted the adopt/php branch October 19, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants