Problem/Motivation
The module has no CI, so nothing checks a change before it is merged: no PHPCS, no PHPStan, no ESLint, no Stylelint, no spell check and no upgrade status against the next Drupal major.
Steps to reproduce
- Open a merge request on the project.
- No pipeline runs.
Proposed resolution
Add the Drupal GitLab CI templates, opt into the previous major, previous minor, next minor, next major and max PHP jobs, run upgrade status, and keep a project word list for the spell check. The lint findings that this brings up are fixed in the same change, and the module now declares Drupal 12 support.

Remaining tasks
- ✅ File an issue
- ✅ Addition/Change/Update/Fix
- ✅ Testing to ensure no regression
- ➖ Automated unit testing coverage
- ➖ Automated functional testing coverage
- ➖ UX/UI designer responsibilities
- ✅ Readability
- ➖ Accessibility
- ➖ Performance
- ➖ Security
- ➖ Developer Documentation
- ➖ User Guide Documentation
- ➖ Reviewed by human
- ➖ Code review by maintainers
- ➖ Full testing and approval
- ➖ Credit contributors
- ➖ Review with the product owner
- ➖ Release notes snippet
- ❌ Release
User interface changes
API changes
Data model changes
Release notes snippet
- Autocomplete Deluxe now runs the Drupal GitLab CI pipeline on every merge request, and declares support for Drupal 12.
Comments
Comment #3
konot commentedI have implemented the CI based on Drupal GitLab CI templates.
I have resolved issues reported by lints; however, I have removed the Eslint and StyleLint config files in the MR !29, as both Eslint and Stylelint are not working correctly with them. It is actually a reported issue in the GitLab Templates project (https://www.drupal.org/project/gitlab_templates/issues/3438843).
I have compared both of those configs with default cores, and they are quite the same, and there were no specific problems in the code which I have been unable to resolve without using inline comments to ignore some issues (like ignoring the gulpfile).
For now, the CI is fully working and all errors are resolved; the CI is fully green.
Comment #4
rajab natshahThank you, Artem for setting the pipeline up and for cleaning the lint findings along the way.
The pipeline is green on all fifteen jobs, including PHPStan and upgrade status on the next major.
Checked the style clean up in a browser on Drupal 11.4, since a good part of the change is CSS: the widget behaves and looks the same in Claro, the suggestion list and the tags are unchanged, and the right to left rules still apply on the Arabic form, where the tags float right with the mirrored padding.
Test coverage is the one thing the pipeline cannot run yet, which is #3619108: Automated functional testing for Autocomplete Deluxe (2.1.x).
To review, test, then merge.
Comment #6
rajab natshahComment #8
rajab natshah