From 39be6f902ec73431ece4d1f76d98b29b83c2dacb Mon Sep 17 00:00:00 2001 From: Imani Manyara Date: Sun, 6 Sep 2026 08:18:34 -0400 Subject: [PATCH] Run the cache-drop step under bash The step uses a POSIX command: rm -rf "$(composer config cache-files-dir)/laranail" Windows runners default to PowerShell, which parses that as Remove-Item and fails the job outright - not a no-op, an error: Remove-Item: D:\a\_temp\....ps1:2 It broke the windows-latest legs on laranail/email and laranail/console while passing on ubuntu. This repo is Linux-only today, so the step works here - but the org policy is Linux and Windows on every PR, and the failure would appear the moment a Windows leg is added. Git Bash ships on the Windows images, so `shell: bash` makes the one line portable without changing it. Applied across every repo carrying the step, so the class of bug is closed rather than fixed twice. --- .github/workflows/tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f4744b2..5a34569 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -48,6 +48,10 @@ jobs: # success and unpacks whatever was cached the first time. That is how # `vendor/bin/laranail-pint` went missing here while the tag carried it. # Everything else is immutable per version and stays cached. + # POSIX command: Windows runners default to PowerShell, where this + # is a Remove-Item parse error rather than a no-op. Git Bash ships on + # the Windows images, so one line makes the step portable. + shell: bash run: rm -rf "$(composer config cache-files-dir)/laranail" - name: Install dependencies