Optimize composer-lint, phpcs, stylelint and eslint jobs

Migrated issue

Reported by: wim leers

Related to !76 (merged)

Problem/Motivation

Currently, composer-lint and phpcs do not define needs.

But phpunit (and the variants introduced by #3397129: Allow modules to opt in to testing against Drupal previous major, previous minor, next minor + #3396106: Allow modules to opt in to testing against Drupal 11 even before they support it) do define needs.

Consequence: those 2 jobs wait for every job in the build stage to complete instead of just the one they need (also as I am typing this, I realize that they're downloading the artifacts of ALL composer* jobs, which means the last one wins 😅).

Steps to reproduce

Proposed resolution

Use needs to be explicit (and faster in case of multiple jobs during the build stage).

Remaining tasks

User interface changes

API changes

Data model changes

Assignee Loading
Time tracking Loading