From 25271717c2eda6ee68fdf92d656da00a2f96bb18 Mon Sep 17 00:00:00 2001 From: boban Date: Tue, 23 Jun 2026 02:26:20 +0200 Subject: [PATCH] fix(ci): build the Vite manifest before php artisan test Full-page tests render @vite layouts; without public/build/manifest.json (gitignored, absent on a fresh CI checkout) they 500. Move npm ci + npm run build ahead of the test step so the manifest exists. Fixes the red CI on every v* tag. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/ci-staging.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-staging.yml b/.github/workflows/ci-staging.yml index 37e4ce3..4174ada 100644 --- a/.github/workflows/ci-staging.yml +++ b/.github/workflows/ci-staging.yml @@ -17,13 +17,15 @@ jobs: coverage: none - run: composer install --no-interaction --prefer-dist --no-progress - run: cp .env.example .env && php artisan key:generate - - run: php artisan test - - run: ./vendor/bin/pint --test - uses: actions/setup-node@v4 with: node-version: '20' - run: npm ci + # Build the Vite manifest BEFORE the tests: full-page tests render @vite layouts, which 500 + # without public/build/manifest.json (it is gitignored, so absent on a fresh CI checkout). - run: npm run build + - run: php artisan test + - run: ./vendor/bin/pint --test - name: shellcheck run: | docker run --rm -v "$PWD:/mnt" -w /mnt koalaman/shellcheck:stable \