async function checkNodeVersions() {
  const allVersions = (await import('all-node-versions')).default;
  const { versions } = await allVersions();
  const nodeVersions = versions.map(version => version.node);

  await new CiVersionCheck({
    packageName: 'Node.js',
    packageSupportUrl: 'https://github.com/nodejs/node/blob/master/CHANGELOG.md',
    yamlFilePath: './.github/workflows/ci.yml',
    ciEnvironmentsKeyPath: 'jobs.check-mongo.strategy.matrix.include',
    ciVersionKey: 'NODE_VERSION',
    releasedVersions: nodeVersions,
    latestComponent: CiVersionCheck.versionComponents.minor,
    ignoreReleasedVersions: [
      '<18.0.0', // These versions have reached their end-of-life support date
      '>=19.0.0 <20.0.0', // These versions have reached their end-of-life support date
      '>=21.0.0', // These versions are not officially supported yet
    ],
  }).check();
}
Check the Nodejs versions used in test environments.