Add GitLab CI and baseline test coverage to improve code quality and release reliability:
•
CI jobs: composer validate, PHPCS (Drupal/DrupalPractice), phpstan-drupal (level 8), PHPUnit (Unit/Kernel/Functional minimal).
•
Add config files: .gitlab-ci.yml, phpcs.xml.dist, phpstan.neon.dist, phpunit.xml.dist.
•
Add minimal tests: load /admin/seo and verify safe redirects; ensure dynamic routes register.
•
Fix analyzer findings without changing public API.
Tasks
•
[ ] Add CI pipeline with the jobs listed above.
•
[ ] Add PHPCS and phpstan configs (level 8; set drupal_root: web).
•
[ ] Add PHPUnit config and minimal Kernel/Functional tests.
•
[ ] Make code adjustments required by analyzers (types, DI, docs) if any.
•
[ ] Update README briefly about CI/tests.
Acceptance criteria
•
[ ] All CI jobs pass on drupal.org GitLab.
•
[ ] PHPCS/DrupalPractice reports 0 errors for the module.
•
[ ] phpstan-drupal level 8 is clean for the module.
•
[ ] Tests pass locally and in CI
Issue fork myrest_seo-3565233
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
sergeydruua commented