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

Function checkMongoDbVersions

ci/ciCheck.js:15–43  ·  view source on GitHub ↗

* Check the MongoDB versions used in test environments.

()

Source from the content-addressed store, hash-verified

13 * Check the MongoDB versions used in test environments.
14 */
15async function checkMongoDbVersions() {
16 let latestStableVersions = await new Promise((resolve, reject) => {
17 exec('m ls', (error, stdout) => {
18 if (error) {
19 reject(error);
20 return;
21 }
22 resolve(stdout.trim());
23 });
24 });
25 latestStableVersions = latestStableVersions.split('\n').map(version => version.trim());
26
27 await new CiVersionCheck({
28 packageName: 'MongoDB',
29 packageSupportUrl: 'https://www.mongodb.com/support-policy',
30 yamlFilePath: './.github/workflows/ci.yml',
31 ciEnvironmentsKeyPath: 'jobs.check-mongo.strategy.matrix.include',
32 ciVersionKey: 'MONGODB_VERSION',
33 releasedVersions: latestStableVersions,
34 latestComponent: CiVersionCheck.versionComponents.patch,
35 ignoreReleasedVersions: [
36 '<4.2.0', // These versions have reached their end-of-life support date
37 '>=4.3.0 <5.0.0', // Unsupported rapid release versions
38 '>=5.1.0 <6.0.0', // Unsupported rapid release versions
39 '>=6.1.0 <7.0.0', // Unsupported rapid release versions
40 '>=7.1.0 <8.0.0', // Unsupported rapid release versions
41 ],
42 }).check();
43}
44
45/**
46 * Check the Nodejs versions used in test environments.

Callers 1

checkFunction · 0.85

Calls 2

checkMethod · 0.80
resolveFunction · 0.50

Tested by

no test coverage detected