@intentius/chant-lexicon-github 0.20.0 → 0.22.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/dist/composites/cache.d.ts +1 -1
- package/dist/composites/cache.d.ts.map +1 -1
- package/dist/composites/checkout.d.ts +1 -1
- package/dist/composites/checkout.d.ts.map +1 -1
- package/dist/composites/deploy-environment.d.ts +1 -1
- package/dist/composites/deploy-environment.d.ts.map +1 -1
- package/dist/composites/docker-build.d.ts +1 -1
- package/dist/composites/docker-build.d.ts.map +1 -1
- package/dist/composites/download-artifact.d.ts +1 -1
- package/dist/composites/download-artifact.d.ts.map +1 -1
- package/dist/composites/go-ci.d.ts +1 -1
- package/dist/composites/go-ci.d.ts.map +1 -1
- package/dist/composites/node-ci.d.ts +1 -1
- package/dist/composites/node-ci.d.ts.map +1 -1
- package/dist/composites/node-pipeline.d.ts +1 -1
- package/dist/composites/node-pipeline.d.ts.map +1 -1
- package/dist/composites/python-ci.d.ts +1 -1
- package/dist/composites/python-ci.d.ts.map +1 -1
- package/dist/composites/setup-go.d.ts +1 -1
- package/dist/composites/setup-go.d.ts.map +1 -1
- package/dist/composites/setup-node.d.ts +1 -1
- package/dist/composites/setup-node.d.ts.map +1 -1
- package/dist/composites/setup-python.d.ts +1 -1
- package/dist/composites/setup-python.d.ts.map +1 -1
- package/dist/composites/upload-artifact.d.ts +1 -1
- package/dist/composites/upload-artifact.d.ts.map +1 -1
- package/dist/generated/index.d.ts +19 -19
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/integrity.json +2 -2
- package/dist/manifest.json +1 -1
- package/package.json +2 -2
- package/src/composites/cache.ts +2 -4
- package/src/composites/checkout.ts +2 -5
- package/src/composites/deploy-environment.ts +7 -11
- package/src/composites/docker-build.ts +8 -13
- package/src/composites/download-artifact.ts +2 -4
- package/src/composites/go-ci.ts +14 -19
- package/src/composites/node-ci.ts +8 -13
- package/src/composites/node-pipeline.ts +16 -21
- package/src/composites/python-ci.ts +14 -19
- package/src/composites/setup-go.ts +2 -4
- package/src/composites/setup-node.ts +2 -4
- package/src/composites/setup-python.ts +2 -4
- package/src/composites/upload-artifact.ts +2 -4
- package/src/serializer.ts +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/composites/cache.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/composites/cache.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACvD,CAAC;CACH;AAED,eAAO,MAAM,WAAW,+GAeb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../src/composites/checkout.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../src/composites/checkout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACvD,CAAC;CACH;AAED,eAAO,MAAM,QAAQ,4GAiBP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-environment.d.ts","sourceRoot":"","sources":["../../src/composites/deploy-environment.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"deploy-environment.d.ts","sourceRoot":"","sources":["../../src/composites/deploy-environment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAQ,MAAM,oBAAoB,CAAC;AAE/C,MAAM,WAAW,sBAAsB;IACrC,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC,2DAA2D;IAC3D,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAClC,sBAAsB;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gDAAgD;IAChD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE;QACT,SAAS,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1D,UAAU,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAC5D,CAAC;CACH;AAED,eAAO,MAAM,iBAAiB,qHAsDP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docker-build.d.ts","sourceRoot":"","sources":["../../src/composites/docker-build.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"docker-build.d.ts","sourceRoot":"","sources":["../../src/composites/docker-build.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAQ,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,4CAA4C;IAC5C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE;QACT,GAAG,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,QAAQ,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAC/D,CAAC;CACH;AAED,eAAO,MAAM,WAAW,+GA0FP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-artifact.d.ts","sourceRoot":"","sources":["../../src/composites/download-artifact.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"download-artifact.d.ts","sourceRoot":"","sources":["../../src/composites/download-artifact.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACvD,CAAC;CACH;AAED,eAAO,MAAM,gBAAgB,oHAcP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"go-ci.d.ts","sourceRoot":"","sources":["../../src/composites/go-ci.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"go-ci.d.ts","sourceRoot":"","sources":["../../src/composites/go-ci.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAQ,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,WAAW,SAAS;IACxB,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE;QACT,QAAQ,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACzD,OAAO,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxD,OAAO,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxD,QAAQ,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAC/D,CAAC;CACH;AAED,eAAO,MAAM,IAAI,wGAuEP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-ci.d.ts","sourceRoot":"","sources":["../../src/composites/node-ci.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"node-ci.d.ts","sourceRoot":"","sources":["../../src/composites/node-ci.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAQ,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,WAAW,WAAW;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE;QACT,GAAG,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,QAAQ,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAC/D,CAAC;CACH;AAED,eAAO,MAAM,MAAM,0GAwDP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-pipeline.d.ts","sourceRoot":"","sources":["../../src/composites/node-pipeline.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"node-pipeline.d.ts","sourceRoot":"","sources":["../../src/composites/node-pipeline.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"python-ci.d.ts","sourceRoot":"","sources":["../../src/composites/python-ci.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"python-ci.d.ts","sourceRoot":"","sources":["../../src/composites/python-ci.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAQ,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,WAAW,aAAa;IAC5B,sCAAsC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxD,OAAO,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxD,QAAQ,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAC/D,CAAC;CACH;AAED,eAAO,MAAM,QAAQ,4GAsEP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-go.d.ts","sourceRoot":"","sources":["../../src/composites/setup-go.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"setup-go.d.ts","sourceRoot":"","sources":["../../src/composites/setup-go.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,MAAM,WAAW,YAAY;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACvD,CAAC;CACH;AAED,eAAO,MAAM,OAAO,2GAcP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-node.d.ts","sourceRoot":"","sources":["../../src/composites/setup-node.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"setup-node.d.ts","sourceRoot":"","sources":["../../src/composites/setup-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACvD,CAAC;CACH;AAED,eAAO,MAAM,SAAS,6GAeP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-python.d.ts","sourceRoot":"","sources":["../../src/composites/setup-python.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"setup-python.d.ts","sourceRoot":"","sources":["../../src/composites/setup-python.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,MAAM,WAAW,gBAAgB;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACvD,CAAC;CACH;AAED,eAAO,MAAM,WAAW,+GAcP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-artifact.d.ts","sourceRoot":"","sources":["../../src/composites/upload-artifact.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"upload-artifact.d.ts","sourceRoot":"","sources":["../../src/composites/upload-artifact.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACvD,CAAC;CACH;AAED,eAAO,MAAM,cAAc,kHAgBP,CAAC"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export declare const Job: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
|
|
2
2
|
export declare const ReusableWorkflowCallJob: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
|
|
3
3
|
export declare const Workflow: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
|
|
4
|
-
export declare const Concurrency: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
5
|
-
export declare const Container: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
6
|
-
export declare const Defaults: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
7
|
-
export declare const Environment: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
8
|
-
export declare const Permissions: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
9
|
-
export declare const PullRequestTargetTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
10
|
-
export declare const PullRequestTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
11
|
-
export declare const PushTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
12
|
-
export declare const RepositoryDispatchTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
13
|
-
export declare const ScheduleTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
14
|
-
export declare const Service: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
15
|
-
export declare const Step: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
16
|
-
export declare const Strategy: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
17
|
-
export declare const WorkflowCallTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
18
|
-
export declare const WorkflowDispatchTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
19
|
-
export declare const WorkflowInput: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
20
|
-
export declare const WorkflowOutput: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
21
|
-
export declare const WorkflowRunTrigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
22
|
-
export declare const WorkflowSecret: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
4
|
+
export declare const Concurrency: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
5
|
+
export declare const Container: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
6
|
+
export declare const Defaults: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
7
|
+
export declare const Environment: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
8
|
+
export declare const Permissions: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
9
|
+
export declare const PullRequestTargetTrigger: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
10
|
+
export declare const PullRequestTrigger: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
11
|
+
export declare const PushTrigger: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
12
|
+
export declare const RepositoryDispatchTrigger: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
13
|
+
export declare const ScheduleTrigger: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
14
|
+
export declare const Service: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
15
|
+
export declare const Step: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
16
|
+
export declare const Strategy: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
17
|
+
export declare const WorkflowCallTrigger: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
18
|
+
export declare const WorkflowDispatchTrigger: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
19
|
+
export declare const WorkflowInput: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
20
|
+
export declare const WorkflowOutput: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
21
|
+
export declare const WorkflowRunTrigger: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
22
|
+
export declare const WorkflowSecret: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
23
23
|
export { GitHub, Runner } from "../variables.js";
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,+IAAuD,CAAC;AACxE,eAAO,MAAM,uBAAuB,+IAA2E,CAAC;AAChH,eAAO,MAAM,QAAQ,+IAA4D,CAAC;AAElF,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,+IAAuD,CAAC;AACxE,eAAO,MAAM,uBAAuB,+IAA2E,CAAC;AAChH,eAAO,MAAM,QAAQ,+IAA4D,CAAC;AAElF,eAAO,MAAM,WAAW,0GAA2D,CAAC;AACpF,eAAO,MAAM,SAAS,0GAAyD,CAAC;AAChF,eAAO,MAAM,QAAQ,0GAAwD,CAAC;AAC9E,eAAO,MAAM,WAAW,0GAA2D,CAAC;AACpF,eAAO,MAAM,WAAW,0GAA2D,CAAC;AACpF,eAAO,MAAM,wBAAwB,0GAAwE,CAAC;AAC9G,eAAO,MAAM,kBAAkB,0GAAkE,CAAC;AAClG,eAAO,MAAM,WAAW,0GAA2D,CAAC;AACpF,eAAO,MAAM,yBAAyB,0GAAyE,CAAC;AAChH,eAAO,MAAM,eAAe,0GAA+D,CAAC;AAC5F,eAAO,MAAM,OAAO,0GAAuD,CAAC;AAC5E,eAAO,MAAM,IAAI,0GAAoD,CAAC;AACtE,eAAO,MAAM,QAAQ,0GAAwD,CAAC;AAC9E,eAAO,MAAM,mBAAmB,0GAAmE,CAAC;AACpG,eAAO,MAAM,uBAAuB,0GAAuE,CAAC;AAC5G,eAAO,MAAM,aAAa,0GAA6D,CAAC;AACxF,eAAO,MAAM,cAAc,0GAA8D,CAAC;AAC1F,eAAO,MAAM,kBAAkB,0GAAkE,CAAC;AAClG,eAAO,MAAM,cAAc,0GAA8D,CAAC;AAG1F,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "82bf3303802dfd09533dbed3041adb5b1c5468d99b07b2e39bdba709841dd204",
|
|
5
5
|
"meta.json": "798c5f5f37b0174756d2451299acfdc95c014f11d06d32b9153bbdfa9f3a580c",
|
|
6
6
|
"types/index.d.ts": "39c0791f0e58025bcef82e0f7a92240508f899fc2771d5dd51b2369b4d330f13",
|
|
7
7
|
"rules/deprecated-action-version.ts": "d41e6e532ab7f623af1bee4ac5279fcb2baada7defa1c5d022a5bc71983e8797",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"skills/chant-github-patterns.md": "bb3abef289a8fdfcf07d6bb2d7289dcb2f38bc0cb0321ea320b78b45a6f548c0",
|
|
68
68
|
"skills/chant-github-security.md": "aab111cb0871cad30281ce48d7da23663689619351029219e2be019a1a61e394"
|
|
69
69
|
},
|
|
70
|
-
"composite": "
|
|
70
|
+
"composite": "5c8f087e3249a5f46a1afae0ea4b71a02e2b5699076b8b88776a1544c4a83176"
|
|
71
71
|
}
|
package/dist/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-github",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "GitHub Actions lexicon for chant — declarative IaC in TypeScript",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://intentius.io/chant",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"typescript": "^5.9.3"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@intentius/chant": "^0.
|
|
64
|
+
"@intentius/chant": "^0.22.0",
|
|
65
65
|
"typescript": "^5.9.3"
|
|
66
66
|
}
|
|
67
67
|
}
|
package/src/composites/cache.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Composite, mergeDefaults } from "@intentius/chant";
|
|
2
|
-
import
|
|
2
|
+
import { Step } from "../generated/index";
|
|
3
3
|
|
|
4
4
|
export interface CacheActionProps {
|
|
5
5
|
path: string;
|
|
@@ -18,9 +18,7 @@ export const CacheAction = Composite<CacheActionProps>((props) => {
|
|
|
18
18
|
};
|
|
19
19
|
if (props.restoreKeys !== undefined) withObj["restore-keys"] = props.restoreKeys.join("\n");
|
|
20
20
|
|
|
21
|
-
const
|
|
22
|
-
const StepClass = createProperty("GitHub::Actions::Step", "github");
|
|
23
|
-
const step = new StepClass(mergeDefaults({
|
|
21
|
+
const step = new Step(mergeDefaults({
|
|
24
22
|
name: "Cache",
|
|
25
23
|
uses: "actions/cache@v4",
|
|
26
24
|
with: withObj,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Composite, mergeDefaults } from "@intentius/chant";
|
|
2
|
-
import
|
|
2
|
+
import { Step } from "../generated/index";
|
|
3
3
|
|
|
4
4
|
export interface CheckoutProps {
|
|
5
5
|
ref?: string;
|
|
@@ -23,10 +23,7 @@ export const Checkout = Composite<CheckoutProps>((props) => {
|
|
|
23
23
|
if (props.submodules !== undefined) withObj.submodules = String(props.submodules);
|
|
24
24
|
if (props.sshKey !== undefined) withObj["ssh-key"] = props.sshKey;
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
const { createProperty } = require("@intentius/chant/runtime");
|
|
28
|
-
const StepClass = createProperty("GitHub::Actions::Step", "github");
|
|
29
|
-
const step = new StepClass(mergeDefaults({
|
|
26
|
+
const step = new Step(mergeDefaults({
|
|
30
27
|
name: "Checkout",
|
|
31
28
|
uses: "actions/checkout@v4",
|
|
32
29
|
...(Object.keys(withObj).length > 0 ? { with: withObj } : {}),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Composite, mergeDefaults } from "@intentius/chant";
|
|
2
|
-
import
|
|
2
|
+
import { Job, Step } from "../generated/index";
|
|
3
3
|
|
|
4
4
|
export interface DeployEnvironmentProps {
|
|
5
5
|
/** Environment name. Required. */
|
|
@@ -38,15 +38,11 @@ export const DeployEnvironment = Composite<DeployEnvironmentProps>((props) => {
|
|
|
38
38
|
const deployScriptArr = Array.isArray(deployScript) ? deployScript : [deployScript];
|
|
39
39
|
const cleanupScriptArr = Array.isArray(cleanupScript) ? cleanupScript : [cleanupScript];
|
|
40
40
|
|
|
41
|
-
const { createProperty, createResource } = require("@intentius/chant/runtime");
|
|
42
|
-
const StepClass = createProperty("GitHub::Actions::Step", "github");
|
|
43
|
-
const JobClass = createResource("GitHub::Actions::Job", "github", {});
|
|
44
|
-
|
|
45
41
|
// ── Deploy job ─────────────────────────────────────────────────────
|
|
46
42
|
const deploySteps = [
|
|
47
|
-
new
|
|
43
|
+
new Step({ name: "Checkout", uses: "actions/checkout@v4" }),
|
|
48
44
|
...deployScriptArr.map(
|
|
49
|
-
(cmd: string) => new
|
|
45
|
+
(cmd: string) => new Step({ name: "Deploy", run: cmd }),
|
|
50
46
|
),
|
|
51
47
|
];
|
|
52
48
|
|
|
@@ -55,7 +51,7 @@ export const DeployEnvironment = Composite<DeployEnvironmentProps>((props) => {
|
|
|
55
51
|
environment.url = url;
|
|
56
52
|
}
|
|
57
53
|
|
|
58
|
-
const deployJob = new
|
|
54
|
+
const deployJob = new Job(mergeDefaults({
|
|
59
55
|
"runs-on": runsOn,
|
|
60
56
|
environment,
|
|
61
57
|
concurrency: {
|
|
@@ -67,13 +63,13 @@ export const DeployEnvironment = Composite<DeployEnvironmentProps>((props) => {
|
|
|
67
63
|
|
|
68
64
|
// ── Cleanup job ────────────────────────────────────────────────────
|
|
69
65
|
const cleanupSteps = [
|
|
70
|
-
new
|
|
66
|
+
new Step({ name: "Checkout", uses: "actions/checkout@v4" }),
|
|
71
67
|
...cleanupScriptArr.map(
|
|
72
|
-
(cmd: string) => new
|
|
68
|
+
(cmd: string) => new Step({ name: "Cleanup", run: cmd }),
|
|
73
69
|
),
|
|
74
70
|
];
|
|
75
71
|
|
|
76
|
-
const cleanupJob = new
|
|
72
|
+
const cleanupJob = new Job(mergeDefaults({
|
|
77
73
|
"runs-on": runsOn,
|
|
78
74
|
environment: { name },
|
|
79
75
|
steps: cleanupSteps,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Composite, mergeDefaults } from "@intentius/chant";
|
|
2
|
-
import
|
|
2
|
+
import { Job, Step, Workflow } from "../generated/index";
|
|
3
3
|
|
|
4
4
|
export interface DockerBuildProps {
|
|
5
5
|
/** Image tag. Default: "${{ github.sha }}" */
|
|
@@ -43,15 +43,10 @@ export const DockerBuild = Composite<DockerBuildProps>((props) => {
|
|
|
43
43
|
defaults,
|
|
44
44
|
} = props;
|
|
45
45
|
|
|
46
|
-
const { createProperty, createResource } = require("@intentius/chant/runtime");
|
|
47
|
-
const StepClass = createProperty("GitHub::Actions::Step", "github");
|
|
48
|
-
const JobClass = createResource("GitHub::Actions::Job", "github", {});
|
|
49
|
-
const WorkflowClass = createResource("GitHub::Actions::Workflow", "github", {});
|
|
50
|
-
|
|
51
46
|
// ── Steps ──────────────────────────────────────────────────────────
|
|
52
|
-
const checkout = new
|
|
47
|
+
const checkout = new Step({ name: "Checkout", uses: "actions/checkout@v4" });
|
|
53
48
|
|
|
54
|
-
const login = new
|
|
49
|
+
const login = new Step({
|
|
55
50
|
name: "Log in to container registry",
|
|
56
51
|
uses: "docker/login-action@v3",
|
|
57
52
|
with: {
|
|
@@ -61,7 +56,7 @@ export const DockerBuild = Composite<DockerBuildProps>((props) => {
|
|
|
61
56
|
},
|
|
62
57
|
});
|
|
63
58
|
|
|
64
|
-
const setupBuildx = new
|
|
59
|
+
const setupBuildx = new Step({
|
|
65
60
|
name: "Set up Docker Buildx",
|
|
66
61
|
uses: "docker/setup-buildx-action@v3",
|
|
67
62
|
});
|
|
@@ -72,7 +67,7 @@ export const DockerBuild = Composite<DockerBuildProps>((props) => {
|
|
|
72
67
|
tags.push(`${imageName}:latest`);
|
|
73
68
|
}
|
|
74
69
|
|
|
75
|
-
const metadata = new
|
|
70
|
+
const metadata = new Step({
|
|
76
71
|
name: "Extract metadata",
|
|
77
72
|
id: "meta",
|
|
78
73
|
uses: "docker/metadata-action@v5",
|
|
@@ -100,18 +95,18 @@ export const DockerBuild = Composite<DockerBuildProps>((props) => {
|
|
|
100
95
|
.join("\n");
|
|
101
96
|
}
|
|
102
97
|
|
|
103
|
-
const buildPush = new
|
|
98
|
+
const buildPush = new Step({
|
|
104
99
|
name: "Build and push",
|
|
105
100
|
uses: "docker/build-push-action@v6",
|
|
106
101
|
with: buildPushWith,
|
|
107
102
|
});
|
|
108
103
|
|
|
109
|
-
const job = new
|
|
104
|
+
const job = new Job(mergeDefaults({
|
|
110
105
|
"runs-on": runsOn,
|
|
111
106
|
steps: [checkout, login, setupBuildx, metadata, buildPush],
|
|
112
107
|
}, defaults?.job));
|
|
113
108
|
|
|
114
|
-
const workflow = new
|
|
109
|
+
const workflow = new Workflow(mergeDefaults({
|
|
115
110
|
name: "Docker Build",
|
|
116
111
|
on: {
|
|
117
112
|
push: { branches: ["main"] },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Composite, mergeDefaults } from "@intentius/chant";
|
|
2
|
-
import
|
|
2
|
+
import { Step } from "../generated/index";
|
|
3
3
|
|
|
4
4
|
export interface DownloadArtifactProps {
|
|
5
5
|
name?: string;
|
|
@@ -17,9 +17,7 @@ export const DownloadArtifact = Composite<DownloadArtifactProps>((props) => {
|
|
|
17
17
|
if (props.path !== undefined) withObj.path = props.path;
|
|
18
18
|
if (props.mergeMultiple !== undefined) withObj["merge-multiple"] = String(props.mergeMultiple);
|
|
19
19
|
|
|
20
|
-
const
|
|
21
|
-
const StepClass = createProperty("GitHub::Actions::Step", "github");
|
|
22
|
-
const step = new StepClass(mergeDefaults({
|
|
20
|
+
const step = new Step(mergeDefaults({
|
|
23
21
|
name: "Download Artifact",
|
|
24
22
|
uses: "actions/download-artifact@v4",
|
|
25
23
|
...(Object.keys(withObj).length > 0 ? { with: withObj } : {}),
|
package/src/composites/go-ci.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Composite, mergeDefaults } from "@intentius/chant";
|
|
2
|
-
import
|
|
2
|
+
import { Job, Step, Workflow } from "../generated/index";
|
|
3
3
|
|
|
4
4
|
export interface GoCIProps {
|
|
5
5
|
/** Go version. Default: "1.22" */
|
|
@@ -30,52 +30,47 @@ export const GoCI = Composite<GoCIProps>((props) => {
|
|
|
30
30
|
defaults,
|
|
31
31
|
} = props;
|
|
32
32
|
|
|
33
|
-
const { createProperty, createResource } = require("@intentius/chant/runtime");
|
|
34
|
-
const StepClass = createProperty("GitHub::Actions::Step", "github");
|
|
35
|
-
const JobClass = createResource("GitHub::Actions::Job", "github", {});
|
|
36
|
-
const WorkflowClass = createResource("GitHub::Actions::Workflow", "github", {});
|
|
37
|
-
|
|
38
33
|
// ── Build job ──────────────────────────────────────────────────────
|
|
39
|
-
const buildJob = new
|
|
34
|
+
const buildJob = new Job(mergeDefaults({
|
|
40
35
|
"runs-on": runsOn,
|
|
41
36
|
steps: [
|
|
42
|
-
new
|
|
43
|
-
new
|
|
37
|
+
new Step({ name: "Checkout", uses: "actions/checkout@v4" }),
|
|
38
|
+
new Step({
|
|
44
39
|
name: "Setup Go",
|
|
45
40
|
uses: "actions/setup-go@v5",
|
|
46
41
|
with: { "go-version": goVersion },
|
|
47
42
|
}),
|
|
48
|
-
new
|
|
43
|
+
new Step({ name: "Build", run: buildCommand }),
|
|
49
44
|
],
|
|
50
45
|
}, defaults?.buildJob));
|
|
51
46
|
|
|
52
47
|
// ── Test job ───────────────────────────────────────────────────────
|
|
53
|
-
const testJob = new
|
|
48
|
+
const testJob = new Job(mergeDefaults({
|
|
54
49
|
"runs-on": runsOn,
|
|
55
50
|
steps: [
|
|
56
|
-
new
|
|
57
|
-
new
|
|
51
|
+
new Step({ name: "Checkout", uses: "actions/checkout@v4" }),
|
|
52
|
+
new Step({
|
|
58
53
|
name: "Setup Go",
|
|
59
54
|
uses: "actions/setup-go@v5",
|
|
60
55
|
with: { "go-version": goVersion },
|
|
61
56
|
}),
|
|
62
|
-
new
|
|
57
|
+
new Step({ name: "Test", run: testCommand }),
|
|
63
58
|
],
|
|
64
59
|
}, defaults?.testJob));
|
|
65
60
|
|
|
66
61
|
// ── Lint job (optional) ────────────────────────────────────────────
|
|
67
62
|
const lintJob =
|
|
68
63
|
lintCommand !== null
|
|
69
|
-
? new
|
|
64
|
+
? new Job(mergeDefaults({
|
|
70
65
|
"runs-on": runsOn,
|
|
71
66
|
steps: [
|
|
72
|
-
new
|
|
73
|
-
new
|
|
67
|
+
new Step({ name: "Checkout", uses: "actions/checkout@v4" }),
|
|
68
|
+
new Step({
|
|
74
69
|
name: "Setup Go",
|
|
75
70
|
uses: "actions/setup-go@v5",
|
|
76
71
|
with: { "go-version": goVersion },
|
|
77
72
|
}),
|
|
78
|
-
new
|
|
73
|
+
new Step({
|
|
79
74
|
name: "Lint",
|
|
80
75
|
uses: "golangci/golangci-lint-action@v6",
|
|
81
76
|
with: { args: lintCommand },
|
|
@@ -84,7 +79,7 @@ export const GoCI = Composite<GoCIProps>((props) => {
|
|
|
84
79
|
}, defaults?.lintJob))
|
|
85
80
|
: undefined;
|
|
86
81
|
|
|
87
|
-
const workflow = new
|
|
82
|
+
const workflow = new Workflow(mergeDefaults({
|
|
88
83
|
name: "Go CI",
|
|
89
84
|
on: {
|
|
90
85
|
push: { branches: ["main"] },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Composite, mergeDefaults } from "@intentius/chant";
|
|
2
|
-
import
|
|
2
|
+
import { Job, Step, Workflow } from "../generated/index";
|
|
3
3
|
|
|
4
4
|
export interface NodeCIProps {
|
|
5
5
|
nodeVersion?: string;
|
|
@@ -26,17 +26,12 @@ export const NodeCI = Composite<NodeCIProps>((props) => {
|
|
|
26
26
|
const install = installCommand ?? (packageManager === "npm" ? "npm ci" : `${packageManager} install`);
|
|
27
27
|
const run = packageManager === "npm" ? "npm run" : packageManager;
|
|
28
28
|
|
|
29
|
-
const
|
|
30
|
-
const StepClass = createProperty("GitHub::Actions::Step", "github");
|
|
31
|
-
const JobClass = createResource("GitHub::Actions::Job", "github", {});
|
|
32
|
-
const WorkflowClass = createResource("GitHub::Actions::Workflow", "github", {});
|
|
33
|
-
|
|
34
|
-
const checkoutStep = new StepClass({
|
|
29
|
+
const checkoutStep = new Step({
|
|
35
30
|
name: "Checkout",
|
|
36
31
|
uses: "actions/checkout@v4",
|
|
37
32
|
});
|
|
38
33
|
|
|
39
|
-
const setupNodeStep = new
|
|
34
|
+
const setupNodeStep = new Step({
|
|
40
35
|
name: "Setup Node.js",
|
|
41
36
|
uses: "actions/setup-node@v4",
|
|
42
37
|
with: {
|
|
@@ -45,27 +40,27 @@ export const NodeCI = Composite<NodeCIProps>((props) => {
|
|
|
45
40
|
},
|
|
46
41
|
});
|
|
47
42
|
|
|
48
|
-
const installStep = new
|
|
43
|
+
const installStep = new Step({
|
|
49
44
|
name: "Install dependencies",
|
|
50
45
|
run: install,
|
|
51
46
|
});
|
|
52
47
|
|
|
53
|
-
const buildStep = new
|
|
48
|
+
const buildStep = new Step({
|
|
54
49
|
name: "Build",
|
|
55
50
|
run: `${run} ${buildScript}`,
|
|
56
51
|
});
|
|
57
52
|
|
|
58
|
-
const testStep = new
|
|
53
|
+
const testStep = new Step({
|
|
59
54
|
name: "Test",
|
|
60
55
|
run: `${run} ${testScript}`,
|
|
61
56
|
});
|
|
62
57
|
|
|
63
|
-
const job = new
|
|
58
|
+
const job = new Job(mergeDefaults({
|
|
64
59
|
"runs-on": "ubuntu-latest",
|
|
65
60
|
steps: [checkoutStep, setupNodeStep, installStep, buildStep, testStep],
|
|
66
61
|
}, defaults?.job));
|
|
67
62
|
|
|
68
|
-
const workflow = new
|
|
63
|
+
const workflow = new Workflow(mergeDefaults({
|
|
69
64
|
name: "CI",
|
|
70
65
|
on: {
|
|
71
66
|
push: { branches: ["main"] },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Composite, withDefaults, mergeDefaults } from "@intentius/chant";
|
|
2
|
-
import
|
|
2
|
+
import { Job, Step, Workflow } from "../generated/index";
|
|
3
3
|
|
|
4
4
|
export interface NodePipelineProps {
|
|
5
5
|
/** Node.js version. Default: "22" */
|
|
@@ -72,29 +72,24 @@ export const NodePipeline = Composite<NodePipelineProps>((props) => {
|
|
|
72
72
|
const install = installCommand ?? pm.installCmd;
|
|
73
73
|
const run = pm.runPrefix;
|
|
74
74
|
|
|
75
|
-
const { createProperty, createResource } = require("@intentius/chant/runtime");
|
|
76
|
-
const StepClass = createProperty("GitHub::Actions::Step", "github");
|
|
77
|
-
const JobClass = createResource("GitHub::Actions::Job", "github", {});
|
|
78
|
-
const WorkflowClass = createResource("GitHub::Actions::Workflow", "github", {});
|
|
79
|
-
|
|
80
75
|
const isBun = packageManager === "bun";
|
|
81
76
|
|
|
82
77
|
// ── Build job steps ────────────────────────────────────────────────
|
|
83
|
-
const buildCheckout = new
|
|
78
|
+
const buildCheckout = new Step({ name: "Checkout", uses: "actions/checkout@v4" });
|
|
84
79
|
|
|
85
80
|
const buildSetup = isBun
|
|
86
|
-
? new
|
|
87
|
-
: new
|
|
81
|
+
? new Step({ name: "Setup Bun", uses: "oven-sh/setup-bun@v2" })
|
|
82
|
+
: new Step({
|
|
88
83
|
name: "Setup Node.js",
|
|
89
84
|
uses: "actions/setup-node@v4",
|
|
90
85
|
with: { "node-version": nodeVersion, cache: pm.cache },
|
|
91
86
|
});
|
|
92
87
|
|
|
93
|
-
const buildInstall = new
|
|
88
|
+
const buildInstall = new Step({ name: "Install dependencies", run: install });
|
|
94
89
|
|
|
95
|
-
const buildRun = new
|
|
90
|
+
const buildRun = new Step({ name: "Build", run: `${run} ${buildScript}` });
|
|
96
91
|
|
|
97
|
-
const buildUpload = new
|
|
92
|
+
const buildUpload = new Step({
|
|
98
93
|
name: "Upload build artifacts",
|
|
99
94
|
uses: "actions/upload-artifact@v4",
|
|
100
95
|
with: {
|
|
@@ -104,40 +99,40 @@ export const NodePipeline = Composite<NodePipelineProps>((props) => {
|
|
|
104
99
|
},
|
|
105
100
|
});
|
|
106
101
|
|
|
107
|
-
const buildJob = new
|
|
102
|
+
const buildJob = new Job(mergeDefaults({
|
|
108
103
|
"runs-on": runsOn,
|
|
109
104
|
steps: [buildCheckout, buildSetup, buildInstall, buildRun, buildUpload],
|
|
110
105
|
}, defaults?.buildJob));
|
|
111
106
|
|
|
112
107
|
// ── Test job steps ─────────────────────────────────────────────────
|
|
113
|
-
const testCheckout = new
|
|
108
|
+
const testCheckout = new Step({ name: "Checkout", uses: "actions/checkout@v4" });
|
|
114
109
|
|
|
115
110
|
const testSetup = isBun
|
|
116
|
-
? new
|
|
117
|
-
: new
|
|
111
|
+
? new Step({ name: "Setup Bun", uses: "oven-sh/setup-bun@v2" })
|
|
112
|
+
: new Step({
|
|
118
113
|
name: "Setup Node.js",
|
|
119
114
|
uses: "actions/setup-node@v4",
|
|
120
115
|
with: { "node-version": nodeVersion, cache: pm.cache },
|
|
121
116
|
});
|
|
122
117
|
|
|
123
|
-
const testInstall = new
|
|
118
|
+
const testInstall = new Step({ name: "Install dependencies", run: install });
|
|
124
119
|
|
|
125
|
-
const testDownload = new
|
|
120
|
+
const testDownload = new Step({
|
|
126
121
|
name: "Download build artifacts",
|
|
127
122
|
uses: "actions/download-artifact@v4",
|
|
128
123
|
with: { name: artifactName },
|
|
129
124
|
});
|
|
130
125
|
|
|
131
|
-
const testRun = new
|
|
126
|
+
const testRun = new Step({ name: "Test", run: `${run} ${testScript}` });
|
|
132
127
|
|
|
133
|
-
const testJob = new
|
|
128
|
+
const testJob = new Job(mergeDefaults({
|
|
134
129
|
"runs-on": runsOn,
|
|
135
130
|
needs: ["build"],
|
|
136
131
|
steps: [testCheckout, testSetup, testInstall, testDownload, testRun],
|
|
137
132
|
}, defaults?.testJob));
|
|
138
133
|
|
|
139
134
|
// ── Workflow ───────────────────────────────────────────────────────
|
|
140
|
-
const workflow = new
|
|
135
|
+
const workflow = new Workflow(mergeDefaults({
|
|
141
136
|
name: "Node Pipeline",
|
|
142
137
|
on: {
|
|
143
138
|
push: { branches: ["main"] },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Composite, mergeDefaults } from "@intentius/chant";
|
|
2
|
-
import
|
|
2
|
+
import { Job, Step, Workflow } from "../generated/index";
|
|
3
3
|
|
|
4
4
|
export interface PythonCIProps {
|
|
5
5
|
/** Python version. Default: "3.12" */
|
|
@@ -32,59 +32,54 @@ export const PythonCI = Composite<PythonCIProps>((props) => {
|
|
|
32
32
|
defaults,
|
|
33
33
|
} = props;
|
|
34
34
|
|
|
35
|
-
const { createProperty, createResource } = require("@intentius/chant/runtime");
|
|
36
|
-
const StepClass = createProperty("GitHub::Actions::Step", "github");
|
|
37
|
-
const JobClass = createResource("GitHub::Actions::Job", "github", {});
|
|
38
|
-
const WorkflowClass = createResource("GitHub::Actions::Workflow", "github", {});
|
|
39
|
-
|
|
40
35
|
const cacheType = usePoetry ? "poetry" : "pip";
|
|
41
36
|
const installSteps = usePoetry
|
|
42
37
|
? [
|
|
43
|
-
new
|
|
44
|
-
new
|
|
38
|
+
new Step({ name: "Install Poetry", run: "pip install poetry" }),
|
|
39
|
+
new Step({ name: "Install dependencies", run: "poetry install" }),
|
|
45
40
|
]
|
|
46
41
|
: [
|
|
47
|
-
new
|
|
42
|
+
new Step({ name: "Install dependencies", run: `pip install -r ${requirementsFile}` }),
|
|
48
43
|
];
|
|
49
44
|
|
|
50
45
|
// ── Test job ───────────────────────────────────────────────────────
|
|
51
|
-
const testJob = new
|
|
46
|
+
const testJob = new Job(mergeDefaults({
|
|
52
47
|
"runs-on": runsOn,
|
|
53
48
|
steps: [
|
|
54
|
-
new
|
|
55
|
-
new
|
|
49
|
+
new Step({ name: "Checkout", uses: "actions/checkout@v4" }),
|
|
50
|
+
new Step({
|
|
56
51
|
name: "Setup Python",
|
|
57
52
|
uses: "actions/setup-python@v5",
|
|
58
53
|
with: { "python-version": pythonVersion, cache: cacheType },
|
|
59
54
|
}),
|
|
60
55
|
...installSteps,
|
|
61
|
-
new
|
|
56
|
+
new Step({ name: "Test", run: testCommand }),
|
|
62
57
|
],
|
|
63
58
|
}, defaults?.testJob));
|
|
64
59
|
|
|
65
60
|
// ── Lint job (optional) ────────────────────────────────────────────
|
|
66
61
|
const lintJob =
|
|
67
62
|
lintCommand !== null
|
|
68
|
-
? new
|
|
63
|
+
? new Job(mergeDefaults({
|
|
69
64
|
"runs-on": runsOn,
|
|
70
65
|
steps: [
|
|
71
|
-
new
|
|
72
|
-
new
|
|
66
|
+
new Step({ name: "Checkout", uses: "actions/checkout@v4" }),
|
|
67
|
+
new Step({
|
|
73
68
|
name: "Setup Python",
|
|
74
69
|
uses: "actions/setup-python@v5",
|
|
75
70
|
with: { "python-version": pythonVersion, cache: cacheType },
|
|
76
71
|
}),
|
|
77
72
|
...installSteps.map((s: any) => {
|
|
78
73
|
// Create fresh step instances for the lint job
|
|
79
|
-
return new
|
|
74
|
+
return new Step({ name: s.props.name, run: s.props.run });
|
|
80
75
|
}),
|
|
81
|
-
new
|
|
76
|
+
new Step({ name: "Lint", run: lintCommand }),
|
|
82
77
|
],
|
|
83
78
|
}, defaults?.lintJob))
|
|
84
79
|
: undefined;
|
|
85
80
|
|
|
86
81
|
// ── Workflow ───────────────────────────────────────────────────────
|
|
87
|
-
const workflow = new
|
|
82
|
+
const workflow = new Workflow(mergeDefaults({
|
|
88
83
|
name: "Python CI",
|
|
89
84
|
on: {
|
|
90
85
|
push: { branches: ["main"] },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Composite, mergeDefaults } from "@intentius/chant";
|
|
2
|
-
import
|
|
2
|
+
import { Step } from "../generated/index";
|
|
3
3
|
|
|
4
4
|
export interface SetupGoProps {
|
|
5
5
|
goVersion?: string;
|
|
@@ -17,9 +17,7 @@ export const SetupGo = Composite<SetupGoProps>((props) => {
|
|
|
17
17
|
if (props.goVersionFile !== undefined) withObj["go-version-file"] = props.goVersionFile;
|
|
18
18
|
if (props.cache !== undefined) withObj.cache = String(props.cache);
|
|
19
19
|
|
|
20
|
-
const
|
|
21
|
-
const StepClass = createProperty("GitHub::Actions::Step", "github");
|
|
22
|
-
const step = new StepClass(mergeDefaults({
|
|
20
|
+
const step = new Step(mergeDefaults({
|
|
23
21
|
name: "Setup Go",
|
|
24
22
|
uses: "actions/setup-go@v5",
|
|
25
23
|
...(Object.keys(withObj).length > 0 ? { with: withObj } : {}),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Composite, mergeDefaults } from "@intentius/chant";
|
|
2
|
-
import
|
|
2
|
+
import { Step } from "../generated/index";
|
|
3
3
|
|
|
4
4
|
export interface SetupNodeProps {
|
|
5
5
|
nodeVersion?: string;
|
|
@@ -19,9 +19,7 @@ export const SetupNode = Composite<SetupNodeProps>((props) => {
|
|
|
19
19
|
if (props.cache !== undefined) withObj.cache = props.cache;
|
|
20
20
|
if (props.cacheFilePath !== undefined) withObj["cache-dependency-path"] = props.cacheFilePath;
|
|
21
21
|
|
|
22
|
-
const
|
|
23
|
-
const StepClass = createProperty("GitHub::Actions::Step", "github");
|
|
24
|
-
const step = new StepClass(mergeDefaults({
|
|
22
|
+
const step = new Step(mergeDefaults({
|
|
25
23
|
name: "Setup Node.js",
|
|
26
24
|
uses: "actions/setup-node@v4",
|
|
27
25
|
...(Object.keys(withObj).length > 0 ? { with: withObj } : {}),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Composite, mergeDefaults } from "@intentius/chant";
|
|
2
|
-
import
|
|
2
|
+
import { Step } from "../generated/index";
|
|
3
3
|
|
|
4
4
|
export interface SetupPythonProps {
|
|
5
5
|
pythonVersion?: string;
|
|
@@ -17,9 +17,7 @@ export const SetupPython = Composite<SetupPythonProps>((props) => {
|
|
|
17
17
|
if (props.cache !== undefined) withObj.cache = props.cache;
|
|
18
18
|
if (props.architecture !== undefined) withObj.architecture = props.architecture;
|
|
19
19
|
|
|
20
|
-
const
|
|
21
|
-
const StepClass = createProperty("GitHub::Actions::Step", "github");
|
|
22
|
-
const step = new StepClass(mergeDefaults({
|
|
20
|
+
const step = new Step(mergeDefaults({
|
|
23
21
|
name: "Setup Python",
|
|
24
22
|
uses: "actions/setup-python@v5",
|
|
25
23
|
...(Object.keys(withObj).length > 0 ? { with: withObj } : {}),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Composite, mergeDefaults } from "@intentius/chant";
|
|
2
|
-
import
|
|
2
|
+
import { Step } from "../generated/index";
|
|
3
3
|
|
|
4
4
|
export interface UploadArtifactProps {
|
|
5
5
|
name: string;
|
|
@@ -20,9 +20,7 @@ export const UploadArtifact = Composite<UploadArtifactProps>((props) => {
|
|
|
20
20
|
if (props.retentionDays !== undefined) withObj["retention-days"] = String(props.retentionDays);
|
|
21
21
|
if (props.compressionLevel !== undefined) withObj["compression-level"] = String(props.compressionLevel);
|
|
22
22
|
|
|
23
|
-
const
|
|
24
|
-
const StepClass = createProperty("GitHub::Actions::Step", "github");
|
|
25
|
-
const step = new StepClass(mergeDefaults({
|
|
23
|
+
const step = new Step(mergeDefaults({
|
|
26
24
|
name: "Upload Artifact",
|
|
27
25
|
uses: "actions/upload-artifact@v4",
|
|
28
26
|
with: withObj,
|
package/src/serializer.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import type { Declarable } from "@intentius/chant/declarable";
|
|
10
|
-
import { isPropertyDeclarable } from "@intentius/chant/declarable";
|
|
10
|
+
import { isPropertyDeclarable, isResourceDeclarable } from "@intentius/chant/declarable";
|
|
11
11
|
import type { Serializer, SerializerResult } from "@intentius/chant/serializer";
|
|
12
12
|
import type { LexiconOutput } from "@intentius/chant/lexicon-output";
|
|
13
13
|
import { walkValue, type SerializerVisitor } from "@intentius/chant/serializer-walker";
|
|
@@ -58,7 +58,7 @@ function githubVisitor(entityNames: Map<Declarable, string>): SerializerVisitor
|
|
|
58
58
|
attrRef: (name, _attr) => name,
|
|
59
59
|
resourceRef: (name) => toKebabCase(name),
|
|
60
60
|
propertyDeclarable: (entity, walk) => {
|
|
61
|
-
if (!(
|
|
61
|
+
if (!isResourceDeclarable(entity) || typeof entity.props !== "object" || entity.props === null) {
|
|
62
62
|
return undefined;
|
|
63
63
|
}
|
|
64
64
|
const props = entity.props as Record<string, unknown>;
|
|
@@ -173,7 +173,7 @@ function buildStandaloneJobsSection(
|
|
|
173
173
|
const jobsSection: Record<string, unknown> = {};
|
|
174
174
|
for (const [name, job] of jobs) {
|
|
175
175
|
const jProps = toYAMLValue(
|
|
176
|
-
(job
|
|
176
|
+
isResourceDeclarable(job) ? job.props : undefined,
|
|
177
177
|
entityNames,
|
|
178
178
|
) as Record<string, unknown> | undefined;
|
|
179
179
|
if (jProps) jobsSection[toKebabCase(name)] = convertKeys(jProps);
|
|
@@ -262,7 +262,7 @@ export const githubSerializer: Serializer = {
|
|
|
262
262
|
// alongside (or instead of) any workflow output.
|
|
263
263
|
if (dependabot.length > 0) {
|
|
264
264
|
const [, dep] = dependabot[0];
|
|
265
|
-
const depProps = (dep
|
|
265
|
+
const depProps = (isResourceDeclarable(dep) ? dep.props : undefined) as Record<string, unknown>;
|
|
266
266
|
const dependabotYaml = emitDependabotYaml(depProps);
|
|
267
267
|
if (typeof workflowOut === "string") {
|
|
268
268
|
return { primary: workflowOut, files: { "dependabot.yml": dependabotYaml } };
|
|
@@ -305,7 +305,7 @@ function serializeSingleWorkflow(
|
|
|
305
305
|
// Workflow-level properties
|
|
306
306
|
if (workflows.length > 0) {
|
|
307
307
|
const [, wf] = workflows[0];
|
|
308
|
-
const props = toYAMLValue((wf
|
|
308
|
+
const props = toYAMLValue(isResourceDeclarable(wf) ? wf.props : undefined, entityNames) as Record<string, unknown> | undefined;
|
|
309
309
|
if (props) {
|
|
310
310
|
if (props.name) doc.name = props.name;
|
|
311
311
|
if (props["run-name"] || props.runName) doc["run-name"] = props["run-name"] ?? props.runName;
|
|
@@ -329,7 +329,7 @@ function serializeSingleWorkflow(
|
|
|
329
329
|
const eventName = TRIGGER_TYPE_TO_EVENT[entityType];
|
|
330
330
|
if (!eventName) continue;
|
|
331
331
|
|
|
332
|
-
const props = toYAMLValue((trigger
|
|
332
|
+
const props = toYAMLValue(isResourceDeclarable(trigger) ? trigger.props : undefined, entityNames) as Record<string, unknown> | undefined;
|
|
333
333
|
if (props && Object.keys(props).length > 0) {
|
|
334
334
|
onSection[eventName] = convertValueKeys(props);
|
|
335
335
|
} else {
|
|
@@ -342,7 +342,7 @@ function serializeSingleWorkflow(
|
|
|
342
342
|
// Jobs: prefer Workflow.props.jobs (raw) when present; fall back to standalone Job exports
|
|
343
343
|
let jobsSection: Record<string, unknown> | undefined;
|
|
344
344
|
if (workflows.length > 0) {
|
|
345
|
-
const rawProps = (workflows[0][1]
|
|
345
|
+
const rawProps = (isResourceDeclarable(workflows[0][1]) ? workflows[0][1].props : undefined) as Record<string, unknown>;
|
|
346
346
|
jobsSection = buildInlineJobsSection(rawProps, entityNames);
|
|
347
347
|
}
|
|
348
348
|
if (!jobsSection) jobsSection = buildStandaloneJobsSection(jobs, entityNames);
|
|
@@ -364,7 +364,7 @@ function serializeMultiWorkflow(
|
|
|
364
364
|
for (let i = 0; i < workflows.length; i++) {
|
|
365
365
|
const [name, wf] = workflows[i];
|
|
366
366
|
const doc: Record<string, unknown> = {};
|
|
367
|
-
const props = toYAMLValue((wf
|
|
367
|
+
const props = toYAMLValue(isResourceDeclarable(wf) ? wf.props : undefined, entityNames) as Record<string, unknown> | undefined;
|
|
368
368
|
|
|
369
369
|
if (props) {
|
|
370
370
|
if (props.name) doc.name = props.name;
|
|
@@ -382,7 +382,7 @@ function serializeMultiWorkflow(
|
|
|
382
382
|
const entityType = (trigger as unknown as Record<string, unknown>).entityType as string;
|
|
383
383
|
const eventName = TRIGGER_TYPE_TO_EVENT[entityType];
|
|
384
384
|
if (!eventName) continue;
|
|
385
|
-
const tProps = toYAMLValue((trigger
|
|
385
|
+
const tProps = toYAMLValue(isResourceDeclarable(trigger) ? trigger.props : undefined, entityNames) as Record<string, unknown> | undefined;
|
|
386
386
|
if (tProps && Object.keys(tProps).length > 0) {
|
|
387
387
|
onSection[eventName] = convertValueKeys(tProps);
|
|
388
388
|
} else {
|
|
@@ -394,7 +394,7 @@ function serializeMultiWorkflow(
|
|
|
394
394
|
|
|
395
395
|
// Jobs: use Workflow.props.jobs when defined, otherwise fall back to standalone exports
|
|
396
396
|
// (standalone exports only assigned to first workflow, for backwards compat with composites)
|
|
397
|
-
const rawProps = (wf
|
|
397
|
+
const rawProps = (isResourceDeclarable(wf) ? wf.props : undefined) as Record<string, unknown>;
|
|
398
398
|
const inlineJobs = buildInlineJobsSection(rawProps, entityNames);
|
|
399
399
|
const jobsSection = inlineJobs ?? (i === 0 ? buildStandaloneJobsSection(jobs, entityNames) : undefined);
|
|
400
400
|
if (jobsSection) doc.jobs = jobsSection;
|