MCPcopy
hub / github.com/parse-community/parse-server / checkNodeVersions

Function checkNodeVersions

ci/ciCheck.js:48–67  ·  view source on GitHub ↗

* Check the Nodejs versions used in test environments.

()

Source from the content-addressed store, hash-verified

46 * Check the Nodejs versions used in test environments.
47 */
48async 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
69check();

Callers 1

checkFunction · 0.85

Calls 1

checkMethod · 0.80

Tested by

no test coverage detected