GitLab CI
This documentation needs work. See "Help improve this page" in the sidebar.
GitLab CI is available for every project hosted on drupal.org. Its jobs allow to fix most of the issues reviewers would report.
Once it is enabled, you can:
- Validate the project's composer.json file
- Validate the project's source code against the Drupal PHP coding standards
- Run static code quality checks
- Check formatting standards in .js and .yml files
- Run Stylelint checks on the CSS code
At least, GitLab CI should be used to validate the composer.json file and the project source code. To avoid most of what reported by reviewers, running static code quality helps would help much.
How to enable GitLab CI
Follow what described in How do I get started with GitLab CI? to enable it in your projects. In short, it required adding a .gitlab-ci.yml file following what that documentation page says.
Can I run GitLab CI jobs locally, before making a commit?
It is possible to run GitLab CI jobs locally, following Running GitLab CI tests locally. It requires DDEV, but it make possible to run GitLab jobs before doing any commit.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion