@intentius/chant-lexicon-gitlab 0.124.27 → 0.124.29
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/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @intentius/chant-lexicon-gitlab
|
|
2
2
|
|
|
3
|
-
GitLab CI lexicon for [chant](https://intentius.io/chant/) — declare CI/CD pipelines as
|
|
3
|
+
GitLab CI lexicon for [chant](https://intentius.io/chant/) — declare CI/CD pipelines as TypeScript that serializes to `.gitlab-ci.yml`.
|
|
4
4
|
|
|
5
5
|
This package provides typed constructors for all GitLab CI keywords (Jobs, Workflows, Default, and property types like Artifacts, Cache, Image, Rule, Environment, and Trigger), the `CI` pseudo-parameter object for predefined variables, the `reference()` intrinsic for YAML `!reference` tags, and GitLab-specific lint rules. It also includes LSP and MCP server support for editor completions and hover.
|
|
6
6
|
|
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "0af87c8b86a1431e32c66adf51bf75e14c571af75f6761294acef0962764e4c6",
|
|
5
5
|
"meta.json": "db082fbf90c5941c498b2bee0f106103449c1a4c257716ca2220f0dd490450b2",
|
|
6
6
|
"types/index.d.ts": "a048a66ebe20da0cb5fc889054cac69044d9bf882e2c56b5c5bf113d1f3ba57c",
|
|
7
7
|
"rules/artifact-no-expiry.ts": "0ca5bb972d4a542126e8a0229d43b55658394cb7dd9b9923b2c590bec1c2ad7d",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"skills/chant-gitlab-migrate.md": "4853d04980560b379e5b0f7267dcb0a1e5d5879cb9e9931681ce76b2a5fe69d8",
|
|
56
56
|
"skills/chant-gitlab-patterns.md": "6d9a44e9e8de4c3820be9d65381b0d2ede4cb3626aaaf0011e21838a9fbf556e"
|
|
57
57
|
},
|
|
58
|
-
"composite": "
|
|
58
|
+
"composite": "0bb737bc06a94be6ceecfbe6eb7814ae11ce8b1f137fa0a33df7ae2998c61733"
|
|
59
59
|
}
|
package/dist/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-gitlab",
|
|
3
|
-
"version": "0.124.
|
|
3
|
+
"version": "0.124.29",
|
|
4
4
|
"description": "GitLab CI lexicon for chant — declarative IaC in TypeScript",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://intentius.io/chant",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"typescript": "^5.9.3"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@intentius/chant": "^0.124.
|
|
71
|
-
"@intentius/chant-lexicon-github": "^0.124.
|
|
70
|
+
"@intentius/chant": "^0.124.29",
|
|
71
|
+
"@intentius/chant-lexicon-github": "^0.124.29"
|
|
72
72
|
},
|
|
73
73
|
"peerDependenciesMeta": {
|
|
74
74
|
"@intentius/chant-lexicon-github": {
|
|
@@ -63,6 +63,16 @@ describe("the GitLab merge-request pipeline", () => {
|
|
|
63
63
|
expect(doc.apply.artifacts).toEqual({ when: "always", paths: [".chant/pr"] });
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
+
test("events and reportUrl stream the run's events into the report artifact and copy the reports out (#4007)", () => {
|
|
67
|
+
const loud = parseYAML(generateGitlabPipeline(ESTATE, { env: "prod", prLoop: { events: true, reportUrl: "$CHANT_REPORT_URL" } }).yaml) as { plan: Job; apply: Job };
|
|
68
|
+
for (const job of [loud.plan, loud.apply]) {
|
|
69
|
+
expect(job.script.at(-1)).toContain('--events-json --report-url "$CHANT_REPORT_URL"');
|
|
70
|
+
expect(job.variables.CHANT_RUN_EVENTS_DIR).toBe(".chant/pr/run-events");
|
|
71
|
+
expect(job.artifacts).toEqual({ when: "always", paths: [".chant/pr"] });
|
|
72
|
+
}
|
|
73
|
+
expect(result.yaml).not.toContain("--events-json");
|
|
74
|
+
});
|
|
75
|
+
|
|
66
76
|
test("runs in an image with git and installs OpenTofu, unless the caller names an image", () => {
|
|
67
77
|
expect(doc.plan.image).toBe("node:22");
|
|
68
78
|
expect(doc.apply.script[0]).toBe(PR_LOOP_SETUP[0]);
|