localgov icon indicating copy to clipboard operation
localgov copied to clipboard

Test on drupal.org - installing dev dependencies.

Open finnlewis opened this issue 6 months ago • 2 comments

We started adding .gitlab-ci.yml to drupal.org for testing here:

https://git.drupalcode.org/project/localgov_page_components/-/blob/1.x/.gitlab-ci.yml?ref_type=heads

It became apparent that we want to replicate the behaviour we have from out github testing runners, where @Adnan-cds scripted a neat step that installs the dev dependencies from composer.json.

See that here https://github.com/localgovdrupal/localgov_shared_workflows/blob/1.x/.github/workflows/test-module.yml#L132-L134

We want to work out how to inject the same behaviour to drupal.org gitlab-ci.

@stephen-cox @tonypaulbarker @andybroomfield let's liaise on this here and share any progress.

Cheers folks!

Finn

finnlewis avatar Jun 12 '25 16:06 finnlewis

CC @ekes and @millnut on this one... please see above ^^^

finnlewis avatar Jun 12 '25 16:06 finnlewis

Hi @finnlewis that module doesn't have localgov_paragraphs as a dev depdendency in composer, once that is added GitLab CI will automatically pick it up.

With GitLab CI it's better to define the correct dev dependencies as it does alot of the work for you

millnut avatar Jun 12 '25 16:06 millnut