cdk8s-cli 1.14.0 → 1.16.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 CHANGED
@@ -91,6 +91,13 @@ 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
+
100
+
94
101
  addIntegTests(project);
95
102
 
96
103
  project.synth();
package/package.json CHANGED
@@ -60,7 +60,7 @@
60
60
  "eslint": "^8",
61
61
  "eslint-import-resolver-node": "^0.3.7",
62
62
  "eslint-import-resolver-typescript": "^2.7.1",
63
- "eslint-plugin-import": "^2.27.5",
63
+ "eslint-plugin-import": "^2.28.0",
64
64
  "glob": "^7.2.3",
65
65
  "jest": "^27",
66
66
  "jest-junit": "^15",
@@ -75,7 +75,7 @@
75
75
  "dependencies": {
76
76
  "@types/node": "^16",
77
77
  "ajv": "^8.12.0",
78
- "cdk8s": "^1.22.0",
78
+ "cdk8s": "^1.25.0",
79
79
  "codemaker": "^1.85.0",
80
80
  "colors": "1.4.0",
81
81
  "constructs": "^3.4.344",
@@ -102,7 +102,7 @@
102
102
  "node": ">= 16.20.0"
103
103
  },
104
104
  "license": "Apache-2.0",
105
- "version": "1.14.0",
105
+ "version": "1.16.0",
106
106
  "jest": {
107
107
  "testMatch": [
108
108
  "<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: ['ubuntu-latest'],
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
- return `jest --testPathIgnorePatterns "^((?!integ).)*$" --passWithNoTests --all --updateSnapshot --coverageProvider=v8 ${args}`;
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[] {