CI installs wrong Drupal version

Migrated issue

Reported by: chi

Related to !236 (merged) !243 (closed)

Problem/Motivation

That apparently happens when a module declare drupal/core dependency in composer.json file.

Steps to reproduce

https://git.drupalcode.org/project/date_point/-/jobs/2000079

Proposed resolution

I would prefer to configure Drupal versions to test in composer.json instead of CI variables.

For example, if a module depends on drupal/core: ^10.2.3

The CI should test itusing Drupal 10.3.0 and optionally using Drupal 10.2.3.