-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy pathci_matrix_constants.js
43 lines (40 loc) · 1.34 KB
/
ci_matrix_constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const MONGODB_VERSIONS = ['latest', 'rapid', '8.0', '7.0', '6.0', '5.0', '4.4', '4.2', '4.0'];
const versions = [
{ codeName: 'gallium', versionNumber: 16, npmVersion: 9 },
{ codeName: 'hydrogen', versionNumber: 18, npmVersion: 10 },
{ codeName: 'iron', versionNumber: 20, npmVersion: 'latest' },
{ codeName: 'jod', versionNumber: 22, npmVersion: 'latest' }
];
const NODE_VERSIONS = versions.map(({ versionNumber }) => versionNumber).sort();
const LOWEST_LTS = NODE_VERSIONS[0];
const LATEST_LTS = NODE_VERSIONS[NODE_VERSIONS.length - 1];
const TOPOLOGIES = ['server', 'replica_set', 'sharded_cluster'];
const AWS_AUTH_VERSIONS = ['latest'];
const TLS_VERSIONS = ['latest', '8.0', '7.0', '6.0', '5.0', '4.4', '4.2'];
const LB_VERSIONS = MONGODB_VERSIONS.slice(0, MONGODB_VERSIONS.indexOf('5.0') + 1);
LB_VERSIONS.reverse();
const DEFAULT_OS = 'rhel80-large';
const WINDOWS_OS = 'windows-vsCurrent-large';
const MACOS_OS = 'macos-14-arm64';
const UBUNTU_OS = 'ubuntu1804-large';
const UBUNTU_20_OS = 'ubuntu2004-small';
const UBUNTU_22_OS = 'ubuntu2204-large';
const DEBIAN_OS = 'debian11-small';
module.exports = {
MONGODB_VERSIONS,
versions,
NODE_VERSIONS,
LB_VERSIONS,
LOWEST_LTS,
LATEST_LTS,
TOPOLOGIES,
AWS_AUTH_VERSIONS,
TLS_VERSIONS,
DEFAULT_OS,
WINDOWS_OS,
MACOS_OS,
UBUNTU_OS,
UBUNTU_20_OS,
UBUNTU_22_OS,
DEBIAN_OS
};