From a536e6d36ff5fcbb86aef7a75d6a83bd6158d85c Mon Sep 17 00:00:00 2001 From: Mathias Grimm Date: Mon, 20 Jul 2026 14:24:19 -0300 Subject: [PATCH] Pin PHP 8.5 in the scaffolded workflow The template relied on the runner image's default PHP, which is 8.4 today and drifts with the image. Pinning the newest stable with setup-php makes the check deterministic and costs a few seconds. Stacked on feat/public-token-fallback so the template only changes once per release chain; merge after PR 39. Co-Authored-By: Claude Fable 5 --- app/Commands/InitCommand.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Commands/InitCommand.php b/app/Commands/InitCommand.php index bb49454..7f6f257 100644 --- a/app/Commands/InitCommand.php +++ b/app/Commands/InitCommand.php @@ -61,6 +61,10 @@ class InitCommand extends Command * when the template changes. The glimpseimg.com repo runs a * docs-drift workflow that compares the two and fails on mismatch. * + * PHP is pinned with setup-php so the check runs on the newest + * stable instead of the runner image default (8.4 today) and stays + * deterministic as that default drifts. + * * The install goes through Composer so every CI run is counted as a * Packagist install. The package declares no runtime dependencies * (the bin is the committed phar), so the install only downloads the @@ -94,6 +98,10 @@ class InitCommand extends Command GLIMPSE_TOKEN: ${{ secrets.GLIMPSE_TOKEN }} steps: - uses: actions/checkout@v6 + - uses: shivammathur/setup-php@v2 + with: + php-version: '8.5' + coverage: none - name: Install glimpse run: | composer global require --no-interaction --no-progress mathiasgrimm/glimpse-cli