Skip to content

Push almost all pipeline definition to a new include

Moshe Weitzman requested to merge main-again into 1.0.x

This lets us make changes and have almost all projects follow along without their intervention.

With this PR an implementing project just puts the following stanza in their .gitlab-ci.yml

include:
  # This include centralizes our CI "golden path" https://docs.gitlab.com/ee/ci/yaml/#includefile
  - project: 'project/gitlab_templates'
    ref: $_GITLAB_TEMPLATES_REF
    file:
      - '/includes/include.drupalci.main.yml'
      - '/includes/include.drupalci.variables.yml'
      - '/includes/include.drupalci.workflows.yml'

This MR also:

  1. Facilitates matrix testing by making it easy to reuse the phpunit job definition.
  2. Makes it possible to disable a job via env variable
  3. Adds --no-interaction to phpunit command
  4. Copies in the default phpcs config
  5. Simplify by not using composer scripts.
  6. Use disclosure triangle to hide printing of env vars in the Console. This tidies our Console log.
  7. Adds Nightwatch testing
  8. Eslint/Stylelint only run when there is work to do
Edited by Moshe Weitzman

Merge request reports

Loading