ci: #3607834 Adopt strict-gating drupalci CI, webship-js suite, and lint configs on 10.1.x

Summary

Adopt the strict-gating drupalci CI pipeline on the 10.1.x line (Varbase 10.1.x / Drupal ~11.4). Every validate job gates strictly (allow_failure: false) and passes, plus a slim webship-js (Playwright + Cucumber-js) BDD browser suite.

Final GREEN pipeline: https://git.drupalcode.org/project/varbase_layout_builder/-/pipelines/8743878/8 jobs success: composer, composer-lint, cspell, eslint, phpcs, phpstan, stylelint, webship-js-test (6 scenarios / 38 steps).

What changed

  • .gitlab-ci.yml: drupalci strict-gating (DRUPAL_CORE 11.4.0, IGNORE_PROJECT_DRUPAL_CORE_VERSION, _ALL_VALIDATE_ALLOW_FAILURE 0, per-job allow_failure: false, varbase-patches ~10.1.0, symfony/runtime allow-plugin). Added .gitlab-ci-local.yml for local runs.
  • webship-js suite: tests/features/drupal/**, selectors, step-definitions, cucumber.js, playwright.config.ts. Installs core Layout Builder + the Layout Builder contrib stack (the payload of recipes/default) on the Standard profile, enables Layout Builder on a content type, and tests the LB admin routes, the Manage-layout editing UI and the LB permission matrix.
  • Core-compatible lint configs (eslint/stylelint/cspell); all submodule .info.yml bumped to ~11.4.0; added vardot/module-installer-factory to composer.
  • Fixes: Drupal\Component\Serialization\Yaml (the Drupal\Core one is gone on D11); project phpstan.neon with targeted ignores for core Layout Builder @internal extends and render/layout-plugin \Drupal:: calls; phpcs trailing whitespace; cspell dictionary word.

Note on the SLIM webship strategy

Varbase Layout Builder hard-depends on varbase_media + varbase_editor, whose released 10.1.x siblings ship config incompatible with the current core/contrib schemas (fixes live only on the unreleased 10.1.x branches), so enabling the module cascade-installs a stack that cannot install cleanly in CI. The suite therefore installs the Layout Builder contrib payload directly. This does not weaken the committed core requirement (~11.4.0).

Checkpoints

  • File issue
  • Addition / change described
  • Testing (manual)
  • Automated testing
  • Code review by maintainers
  • Reviewed by a human
Edited by Rajab Natshah

Merge request reports

Loading