@catladder/pipeline 1.163.0 → 1.163.2

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.
Files changed (78) hide show
  1. package/README.md +15 -1
  2. package/dist/bundles/catladder-gitlab/index.js +2 -2
  3. package/dist/constants.js +1 -1
  4. package/dist/pipeline/generatePipelineFiles.d.ts +38 -0
  5. package/dist/pipeline/generatePipelineFiles.js +44 -23
  6. package/dist/tsconfig.tsbuildinfo +1 -1
  7. package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +1335 -1952
  8. package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +1319 -1928
  9. package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +1335 -1952
  10. package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +1387 -2004
  11. package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +1335 -1952
  12. package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +1346 -1963
  13. package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +1335 -1952
  14. package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +1335 -1952
  15. package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +1379 -1996
  16. package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +1219 -1668
  17. package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +1335 -1952
  18. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +2815 -3924
  19. package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +2562 -3447
  20. package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +1343 -1960
  21. package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +1190 -1780
  22. package/examples/__snapshots__/custom-build-job.test.ts.snap +1079 -1480
  23. package/examples/__snapshots__/custom-deploy.test.ts.snap +1101 -1718
  24. package/examples/__snapshots__/custom-envs.test.ts.snap +707 -1172
  25. package/examples/__snapshots__/custom-sbom-java.test.ts.snap +1087 -1488
  26. package/examples/__snapshots__/git-submodule.test.ts.snap +1336 -1955
  27. package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +1772 -2443
  28. package/examples/__snapshots__/kubernetes-with-cloud-sql-legacy.test.ts.snap +1784 -2455
  29. package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +1792 -2463
  30. package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +3342 -4547
  31. package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +1896 -2567
  32. package/examples/__snapshots__/local-dot-env.test.ts.snap +1335 -1952
  33. package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +1833 -2496
  34. package/examples/__snapshots__/multiline-var.test.ts.snap +3295 -4406
  35. package/examples/__snapshots__/native-app.test.ts.snap +2143 -3160
  36. package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +1335 -1952
  37. package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +1343 -1960
  38. package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +1479 -2003
  39. package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +1464 -1988
  40. package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +1273 -2102
  41. package/examples/__utils__/helpers.ts +14 -1
  42. package/examples/cloud-run-memory-limit.test.ts +4 -3
  43. package/examples/cloud-run-meteor-with-worker.test.ts +4 -3
  44. package/examples/cloud-run-no-cpu-throttling.test.ts +4 -3
  45. package/examples/cloud-run-no-service.test.ts +4 -3
  46. package/examples/cloud-run-non-public.test.ts +4 -3
  47. package/examples/cloud-run-post-stop-job.test.ts +4 -3
  48. package/examples/cloud-run-service-gen2.test.ts +4 -3
  49. package/examples/cloud-run-service-increase-timout.test.ts +4 -3
  50. package/examples/cloud-run-service-with-volumes.test.ts +4 -3
  51. package/examples/cloud-run-storybook.test.ts +4 -3
  52. package/examples/cloud-run-with-ngnix.test.ts +4 -3
  53. package/examples/cloud-run-with-sql-reuse-db.test.ts +4 -3
  54. package/examples/cloud-run-with-sql.test.ts +4 -3
  55. package/examples/cloud-run-with-worker.test.ts +4 -3
  56. package/examples/custom-build-job-with-tests.test.ts +4 -3
  57. package/examples/custom-build-job.test.ts +4 -3
  58. package/examples/custom-deploy.test.ts +4 -3
  59. package/examples/custom-envs.test.ts +4 -3
  60. package/examples/custom-sbom-java.test.ts +4 -3
  61. package/examples/git-submodule.test.ts +4 -3
  62. package/examples/kubernetes-application-customization.test.ts +4 -3
  63. package/examples/kubernetes-with-cloud-sql-legacy.test.ts +4 -3
  64. package/examples/kubernetes-with-cloud-sql.test.ts +4 -3
  65. package/examples/kubernetes-with-jobs.test.ts +4 -3
  66. package/examples/kubernetes-with-mongodb.test.ts +4 -3
  67. package/examples/local-dot-env.test.ts +4 -3
  68. package/examples/meteor-kubernetes.test.ts +4 -3
  69. package/examples/multiline-var.test.ts +4 -3
  70. package/examples/native-app.test.ts +4 -3
  71. package/examples/node-build-with-custom-image.test.ts +4 -3
  72. package/examples/node-build-with-docker-additions.test.ts +4 -3
  73. package/examples/rails-k8s-with-worker-dockerfile.test.ts +2 -2
  74. package/examples/rails-k8s-with-worker.test.ts +4 -3
  75. package/examples/wait-for-other-deploy.test.ts +4 -3
  76. package/package.json +4 -3
  77. package/scripts/generate-examples-test.ts +7 -7
  78. package/src/pipeline/generatePipelineFiles.ts +61 -36
@@ -1,5 +1,11 @@
1
+ import { stringify } from "yaml";
2
+
1
3
  import type { Config } from "../../src";
2
- import { createChildPipeline } from "../../src";
4
+ import {
5
+ createChildPipeline,
6
+ generateLocalPipelineContent,
7
+ yamlStringifyOptions,
8
+ } from "../../src";
3
9
 
4
10
  const ALL_TRIGGERS = ["mainBranch", "taggedRelease", "mr"] as const;
5
11
 
@@ -12,3 +18,10 @@ export const createAllPipelines = async (config: Config) =>
12
18
  ]),
13
19
  ),
14
20
  );
21
+
22
+ export const createYamlLocalPipeline = async (
23
+ config: Config,
24
+ ): Promise<string> => {
25
+ const pipelineContent = await generateLocalPipelineContent(config, "gitlab");
26
+ return stringify(pipelineContent, yamlStringifyOptions);
27
+ };
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./cloud-run-memory-limit";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for cloud-run-memory-limit", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for cloud-run-memory-limit local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./cloud-run-meteor-with-worker";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for cloud-run-meteor-with-worker", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for cloud-run-meteor-with-worker local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./cloud-run-no-cpu-throttling";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for cloud-run-no-cpu-throttling", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for cloud-run-no-cpu-throttling local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./cloud-run-no-service";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for cloud-run-no-service", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for cloud-run-no-service local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./cloud-run-non-public";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for cloud-run-non-public", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for cloud-run-non-public local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./cloud-run-post-stop-job";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for cloud-run-post-stop-job", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for cloud-run-post-stop-job local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./cloud-run-service-gen2";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for cloud-run-service-gen2", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for cloud-run-service-gen2 local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./cloud-run-service-increase-timout";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for cloud-run-service-increase-timout", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for cloud-run-service-increase-timout local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./cloud-run-service-with-volumes";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for cloud-run-service-with-volumes", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for cloud-run-service-with-volumes local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./cloud-run-storybook";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for cloud-run-storybook", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for cloud-run-storybook local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./cloud-run-with-ngnix";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for cloud-run-with-ngnix", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for cloud-run-with-ngnix local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./cloud-run-with-sql-reuse-db";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for cloud-run-with-sql-reuse-db", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for cloud-run-with-sql-reuse-db local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./cloud-run-with-sql";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for cloud-run-with-sql", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for cloud-run-with-sql local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./cloud-run-with-worker";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for cloud-run-with-worker", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for cloud-run-with-worker local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./custom-build-job-with-tests";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for custom-build-job-with-tests", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for custom-build-job-with-tests local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./custom-build-job";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for custom-build-job", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for custom-build-job local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./custom-deploy";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for custom-deploy", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for custom-deploy local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./custom-envs";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for custom-envs", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for custom-envs local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./custom-sbom-java";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for custom-sbom-java", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for custom-sbom-java local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./git-submodule";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for git-submodule", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for git-submodule local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./kubernetes-application-customization";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for kubernetes-application-customization", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for kubernetes-application-customization local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./kubernetes-with-cloud-sql-legacy";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for kubernetes-with-cloud-sql-legacy", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for kubernetes-with-cloud-sql-legacy local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./kubernetes-with-cloud-sql";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for kubernetes-with-cloud-sql", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for kubernetes-with-cloud-sql local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./kubernetes-with-jobs";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for kubernetes-with-jobs", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for kubernetes-with-jobs local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./kubernetes-with-mongodb";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for kubernetes-with-mongodb", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for kubernetes-with-mongodb local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./local-dot-env";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for local-dot-env", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for local-dot-env local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./meteor-kubernetes";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for meteor-kubernetes", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for meteor-kubernetes local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./multiline-var";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for multiline-var", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for multiline-var local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./native-app";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for native-app", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for native-app local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./node-build-with-custom-image";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for node-build-with-custom-image", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for node-build-with-custom-image local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./node-build-with-docker-additions";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for node-build-with-docker-additions", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for node-build-with-docker-additions local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,9 +1,9 @@
1
1
  import { rmSync, writeFileSync } from "fs";
2
- import { createAllPipelines } from "./__utils__/helpers";
2
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
3
3
  import config from "./rails-k8s-with-worker";
4
4
 
5
5
  it("matches snapshot with a Dockerfile", async () => {
6
6
  writeFileSync("Dockerfile", "");
7
- expect(await createAllPipelines(config)).toMatchSnapshot();
7
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
8
8
  rmSync("Dockerfile");
9
9
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./rails-k8s-with-worker";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for rails-k8s-with-worker", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for rails-k8s-with-worker local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
@@ -1,10 +1,11 @@
1
- import { createAllPipelines } from "./__utils__/helpers";
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
2
  import config from "./wait-for-other-deploy";
3
3
 
4
4
  /**
5
5
  * This test is auto-generated.
6
6
  * Modifications will be overwritten on every `yarn test` run!
7
7
  */
8
- it("matches snapshot for wait-for-other-deploy", async () => {
9
- expect(await createAllPipelines(config)).toMatchSnapshot();
8
+
9
+ it("matches snapshot for wait-for-other-deploy local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
10
11
  });
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@catladder/pipeline",
3
- "description": "CI/CD and Devops-Workflow",
4
- "homepage": "https://git.panter.ch/catladder/catladder/#readme",
3
+ "description": "Panter workflow for cloud CI/CD and DevOps",
4
+ "homepage": "https://catladder.git.panter.biz/catladder/docs",
5
5
  "bugs": "https://git.panter.ch/catladder/catladder/issues",
6
+ "readme": "https://git.panter.ch/catladder/catladder/-/blob/main/pipeline/README.md",
6
7
  "repository": {
7
8
  "type": "git",
8
9
  "url": "git+https://git.panter.ch/catladder/catladder.git",
@@ -52,7 +53,7 @@
52
53
  }
53
54
  ],
54
55
  "license": "MIT",
55
- "version": "1.163.0",
56
+ "version": "1.163.2",
56
57
  "scripts": {
57
58
  "build:tsc": "yarn tsc",
58
59
  "build": "yarn build:compile && yarn build:inline-variables && yarn build:bundle",
@@ -63,16 +63,16 @@ async function main() {
63
63
  exampleFiles.map(async (exampleFile) => {
64
64
  const kebabName = basename(exampleFile, ".ts");
65
65
  const testFileContent = [
66
- `import { createAllPipelines } from "./__utils__/helpers";`,
66
+ `import { createYamlLocalPipeline } from "./__utils__/helpers";`,
67
67
  `import config from "./${kebabName}";`,
68
- ``,
69
- `/**`,
68
+ `\n/**`,
70
69
  ` * This test is auto-generated.`,
71
70
  ` * Modifications will be overwritten on every \`yarn test\` run!`,
72
- ` */`,
73
- `it("matches snapshot for ${kebabName}", async () => {`,
74
- ` expect(await createAllPipelines(config)).toMatchSnapshot();`,
75
- `});`,
71
+ ` */\n`,
72
+
73
+ `it("matches snapshot for ${kebabName} local pipeline YAML", async () => {`,
74
+ ` expect(await createYamlLocalPipeline(config)).toMatchSnapshot();`,
75
+ `});\n`,
76
76
  ].join("\n");
77
77
  const formattedTest = await format(testFileContent, {
78
78
  parser: "typescript",