cdk8s-cli 2.198.106 → 2.198.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/projenrc/integ.ts +0 -122
package/package.json
CHANGED
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"glob": "^7.2.3",
|
|
65
65
|
"jest": "^27",
|
|
66
66
|
"jest-junit": "^15",
|
|
67
|
-
"projen": "^0.81.
|
|
67
|
+
"projen": "^0.81.4",
|
|
68
68
|
"standard-version": "^9",
|
|
69
69
|
"ts-jest": "^27",
|
|
70
70
|
"ts-node": "^10.9.2",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"semver": "^7.6.0",
|
|
87
87
|
"sscaff": "^1.2.274",
|
|
88
88
|
"table": "^6.8.2",
|
|
89
|
-
"yaml": "2.4.
|
|
89
|
+
"yaml": "2.4.2",
|
|
90
90
|
"yargs": "^15"
|
|
91
91
|
},
|
|
92
92
|
"keywords": [
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"node": ">= 16.20.0"
|
|
103
103
|
},
|
|
104
104
|
"license": "Apache-2.0",
|
|
105
|
-
"version": "2.198.
|
|
105
|
+
"version": "2.198.108",
|
|
106
106
|
"jest": {
|
|
107
107
|
"testMatch": [
|
|
108
108
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|
package/projenrc/integ.ts
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import * as fs from 'fs';
|
|
2
|
-
import * as path from 'path';
|
|
3
|
-
import { typescript, github } from 'projen';
|
|
4
|
-
|
|
5
|
-
export function addIntegTests(project: typescript.TypeScriptProject) {
|
|
6
|
-
|
|
7
|
-
const oses = ['windows-latest', 'macos-latest', 'ubuntu-latest'];
|
|
8
|
-
|
|
9
|
-
const integWorkflow = project.github!.addWorkflow('integ');
|
|
10
|
-
integWorkflow.on({ pullRequest: {}, workflowDispatch: {} });
|
|
11
|
-
|
|
12
|
-
const initTask = project.addTask('integ:init');
|
|
13
|
-
initTask.exec(`yarn run ${project.compileTask.name}`);
|
|
14
|
-
initTask.exec(`yarn run ${project.packageTask.name}`);
|
|
15
|
-
initTask.exec(jest('integ/init.test.ts'));
|
|
16
|
-
|
|
17
|
-
function addIntegTest(name: string) {
|
|
18
|
-
const task = project.addTask(`integ:init:${name}`);
|
|
19
|
-
task.exec(`yarn run ${project.compileTask.name}`);
|
|
20
|
-
task.exec(`yarn run ${project.packageTask.name}`);
|
|
21
|
-
task.exec(jest(`integ/init.test.ts -t ${name}`));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const templatesDir = path.join(__dirname, '..', 'templates');
|
|
25
|
-
for (const template of fs.readdirSync(templatesDir)) {
|
|
26
|
-
if (fs.statSync(path.join(templatesDir, template)).isDirectory()) {
|
|
27
|
-
addIntegTest(`${template}-npm`);
|
|
28
|
-
addIntegTest(`${template}-yarn`);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// run all init tests on node 16
|
|
33
|
-
integWorkflow.addJob('init', {
|
|
34
|
-
runsOn: ['${{ matrix.os }}'],
|
|
35
|
-
strategy: {
|
|
36
|
-
failFast: false,
|
|
37
|
-
matrix: {
|
|
38
|
-
domain: {
|
|
39
|
-
os: oses,
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
permissions: { contents: github.workflows.JobPermission.READ },
|
|
44
|
-
steps: runSteps([initTask.name], 'lts/*', true, true),
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
// run typescript app on node 18 as well
|
|
48
|
-
const nodeVersions = [18];
|
|
49
|
-
integWorkflow.addJob('init-typescript-app', {
|
|
50
|
-
runsOn: ['ubuntu-latest'],
|
|
51
|
-
strategy: {
|
|
52
|
-
failFast: false,
|
|
53
|
-
matrix: { domain: { nodeVersion: nodeVersions } },
|
|
54
|
-
},
|
|
55
|
-
permissions: {
|
|
56
|
-
contents: github.workflows.JobPermission.READ,
|
|
57
|
-
},
|
|
58
|
-
steps: runSteps(['integ:init:typescript-app-npm', 'integ:init:typescript-app-yarn'], '${{ matrix.nodeVersion }}', false, false),
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
for (const nodeVersion of nodeVersions) {
|
|
62
|
-
project.autoMerge!.addConditions(`status-success=init-typescript-app (${nodeVersion})`);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
for (const os of oses) {
|
|
66
|
-
project.autoMerge!.addConditions(`status-success=init (${os})`);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function jest(args: string) {
|
|
72
|
-
// we override 'testPathIgnorePatterns' and 'testMatch' so that it matches only integration tests
|
|
73
|
-
// see https://github.com/jestjs/jest/issues/7914
|
|
74
|
-
return `jest --testMatch "<rootDir>/test/integ/**/*.test.ts" --testPathIgnorePatterns "/node_modules/" --passWithNoTests --all --updateSnapshot --coverageProvider=v8 ${args}`;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
function runSteps(tasks: string[], nodeVersion: string, python: boolean, go: boolean): github.workflows.JobStep[] {
|
|
78
|
-
const steps: github.workflows.JobStep[] = [
|
|
79
|
-
{ uses: 'actions/checkout@v3' },
|
|
80
|
-
{
|
|
81
|
-
name: 'Set up Node.js',
|
|
82
|
-
uses: 'actions/setup-node@v3',
|
|
83
|
-
with: { 'node-version': nodeVersion },
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: 'Install dependencies',
|
|
87
|
-
run: 'yarn install --frozen-lockfile',
|
|
88
|
-
},
|
|
89
|
-
];
|
|
90
|
-
|
|
91
|
-
if (python) {
|
|
92
|
-
steps.push({
|
|
93
|
-
name: 'Set up Python 3.x',
|
|
94
|
-
uses: 'actions/setup-python@v4',
|
|
95
|
-
with: {
|
|
96
|
-
'python-version': '3.x',
|
|
97
|
-
},
|
|
98
|
-
});
|
|
99
|
-
steps.push({
|
|
100
|
-
name: 'Install pipenv',
|
|
101
|
-
run: 'pip install pipenv',
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
if (go) {
|
|
106
|
-
steps.push({
|
|
107
|
-
name: 'Set up Go',
|
|
108
|
-
uses: 'actions/setup-go@v4',
|
|
109
|
-
with: {
|
|
110
|
-
'go-version': '1.18',
|
|
111
|
-
},
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
for (const task of tasks) {
|
|
116
|
-
steps.push({
|
|
117
|
-
name: 'Run integration tests',
|
|
118
|
-
run: `yarn run ${task}`,
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
return steps;
|
|
122
|
-
}
|