cdk8s-cli 2.14.0 → 2.15.0
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/.projenrc.ts +6 -0
- package/package.json +2 -2
- package/projenrc/integ.ts +18 -5
package/.projenrc.ts
CHANGED
|
@@ -91,6 +91,12 @@ schemas.exec('ts-node scripts/crd.schema.ts');
|
|
|
91
91
|
|
|
92
92
|
project.compileTask.spawn(schemas);
|
|
93
93
|
|
|
94
|
+
// so that it works on windows as well
|
|
95
|
+
// default projen uses $(npm pack) which fails
|
|
96
|
+
project.packageTask.reset();
|
|
97
|
+
project.packageTask.exec('mkdir -p dist/js');
|
|
98
|
+
project.packageTask.exec('npm pack --pack-destination dist/js');
|
|
99
|
+
|
|
94
100
|
|
|
95
101
|
addIntegTests(project);
|
|
96
102
|
|
package/package.json
CHANGED
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@types/node": "^16",
|
|
77
77
|
"ajv": "^8.12.0",
|
|
78
|
-
"cdk8s": "^2.
|
|
78
|
+
"cdk8s": "^2.28.0",
|
|
79
79
|
"cdk8s-plus-25": "^2.16.0",
|
|
80
80
|
"codemaker": "^1.85.0",
|
|
81
81
|
"colors": "1.4.0",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"node": ">= 16.20.0"
|
|
104
104
|
},
|
|
105
105
|
"license": "Apache-2.0",
|
|
106
|
-
"version": "2.
|
|
106
|
+
"version": "2.15.0",
|
|
107
107
|
"jest": {
|
|
108
108
|
"testMatch": [
|
|
109
109
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|
package/projenrc/integ.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { typescript, github } from 'projen';
|
|
|
4
4
|
|
|
5
5
|
export function addIntegTests(project: typescript.TypeScriptProject) {
|
|
6
6
|
|
|
7
|
+
const oses = ['windows-latest', 'macos-latest', 'ubuntu-latest'];
|
|
8
|
+
|
|
7
9
|
const integWorkflow = project.github!.addWorkflow('integ');
|
|
8
10
|
integWorkflow.on({ pullRequest: {}, workflowDispatch: {} });
|
|
9
11
|
|
|
@@ -29,7 +31,15 @@ export function addIntegTests(project: typescript.TypeScriptProject) {
|
|
|
29
31
|
|
|
30
32
|
// run all init tests on node 16
|
|
31
33
|
integWorkflow.addJob('init', {
|
|
32
|
-
runsOn: ['
|
|
34
|
+
runsOn: ['${{ matrix.os }}'],
|
|
35
|
+
strategy: {
|
|
36
|
+
failFast: false,
|
|
37
|
+
matrix: {
|
|
38
|
+
domain: {
|
|
39
|
+
os: oses,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
33
43
|
permissions: { contents: github.workflows.JobPermission.READ },
|
|
34
44
|
steps: runSteps([initTask.name], '16', true, true),
|
|
35
45
|
});
|
|
@@ -48,17 +58,20 @@ export function addIntegTests(project: typescript.TypeScriptProject) {
|
|
|
48
58
|
steps: runSteps(['integ:init:typescript-app-npm', 'integ:init:typescript-app-yarn'], '${{ matrix.nodeVersion }}', false, false),
|
|
49
59
|
});
|
|
50
60
|
|
|
51
|
-
project.autoMerge!.addConditions('status-success=init');
|
|
52
|
-
|
|
53
61
|
for (const nodeVersion of nodeVersions) {
|
|
54
62
|
project.autoMerge!.addConditions(`status-success=init-typescript-app (${nodeVersion})`);
|
|
55
63
|
}
|
|
56
64
|
|
|
65
|
+
for (const os of oses) {
|
|
66
|
+
project.autoMerge!.addConditions(`status-success=init (${os})`);
|
|
67
|
+
}
|
|
68
|
+
|
|
57
69
|
}
|
|
58
70
|
|
|
59
71
|
function jest(args: string) {
|
|
60
|
-
// we override 'testPathIgnorePatterns' so that it matches only integration tests
|
|
61
|
-
|
|
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}`;
|
|
62
75
|
};
|
|
63
76
|
|
|
64
77
|
function runSteps(tasks: string[], nodeVersion: string, python: boolean, go: boolean): github.workflows.JobStep[] {
|