Boost Drupal CI Stability with Composer Validate: Deployment Confidence Part 2
Eirik Morland continues his deployment confidence series with a focus on composer validate
in CI pipelines. This low-effort check ensures that composer.lock
is synced with composer.json
, preventing subtle dependency mismatches. If a mismatch is detected, the CI job fails early—avoiding surprises during deployment.
Morland warns against the common fix of blindly running composer update
, which can introduce unintended changes. He advises running a leaner validation command—composer validate --no-check-version --no-check-publish
—to skip unnecessary checks for web projects.
To standardize use across platforms, he suggests adding a custom script alias (composer ci:validate
). He also links to working pipeline examples for GitHub, GitLab, and Bitbucket.
This post is practical, not promotional. It’s a useful read for any Drupal team maintaining Composer-based dependencies in CI/CD workflows. While not groundbreaking, this post provides a clean and actionable tweak to help maintain dependency hygiene in Drupal deployments.