Fix CI build: install Composer deps before npm build (v1.1.1)

The prebuild hook runs phpunit via composer exec, but Composer
dependencies were not installed until after npm run build. Moved
composer install (with dev) before the build step, then reinstall
with --no-dev for the release package.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 00:14:13 +01:00
parent e607382e11
commit 359b4e944e

View File

@@ -75,16 +75,19 @@ jobs:
- name: Install Node dependencies
run: npm install
- name: Build assets
run: npm run build
- name: Validate composer.json
run: composer validate --no-check-lock --no-check-all
- name: Install Composer dependencies (production)
- name: Install Composer dependencies (with dev for prebuild tests)
run: |
composer config platform.php 8.3.0
composer install --no-dev --optimize-autoloader --no-interaction
composer install --no-interaction
- name: Build assets
run: npm run build
- name: Reinstall Composer dependencies (production only)
run: composer install --no-dev --optimize-autoloader --no-interaction
- name: Install gettext
run: apt-get update && apt-get install -y gettext