* Check the Nodejs versions used in test environments.
()
| 46 | * Check the Nodejs versions used in test environments. |
| 47 | */ |
| 48 | async function checkNodeVersions() { |
| 49 | const allVersions = (await import('all-node-versions')).default; |
| 50 | const { versions } = await allVersions(); |
| 51 | const nodeVersions = versions.map(version => version.node); |
| 52 | |
| 53 | await new CiVersionCheck({ |
| 54 | packageName: 'Node.js', |
| 55 | packageSupportUrl: 'https://github.com/nodejs/node/blob/master/CHANGELOG.md', |
| 56 | yamlFilePath: './.github/workflows/ci.yml', |
| 57 | ciEnvironmentsKeyPath: 'jobs.check-mongo.strategy.matrix.include', |
| 58 | ciVersionKey: 'NODE_VERSION', |
| 59 | releasedVersions: nodeVersions, |
| 60 | latestComponent: CiVersionCheck.versionComponents.minor, |
| 61 | ignoreReleasedVersions: [ |
| 62 | '<18.0.0', // These versions have reached their end-of-life support date |
| 63 | '>=19.0.0 <20.0.0', // These versions have reached their end-of-life support date |
| 64 | '>=21.0.0', // These versions are not officially supported yet |
| 65 | ], |
| 66 | }).check(); |
| 67 | } |
| 68 | |
| 69 | check(); |