@intentius/chant-lexicon-forgejo 0.53.1 → 0.54.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-pipeline.d.ts","sourceRoot":"","sources":["../../src/components/generate-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAA2B,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAOjF;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,eAAe,EAAE,EAC7B,OAAO,GAAE,wBAA6B,EACtC,cAAc,GAAE,qBAA0B,GACzC,uBAAuB,
|
|
1
|
+
{"version":3,"file":"generate-pipeline.d.ts","sourceRoot":"","sources":["../../src/components/generate-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAA2B,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAOjF;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,eAAe,EAAE,EAC7B,OAAO,GAAE,wBAA6B,EACtC,cAAc,GAAE,qBAA0B,GACzC,uBAAuB,CAgBzB"}
|
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "f6b183a39705c1bbdf34b09a5968c4315aa49909a2c02eb0c090116f3ffe74ce",
|
|
5
5
|
"meta.json": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
|
|
6
6
|
"types/index.d.ts": "66204549b2a864ab5489e3f02c1878e73ab4b3c9d938cfb480b66f71543a43de",
|
|
7
7
|
"rules/delegate-to-github.ts": "1060cda40f4b73d6cca3ba3fa13b80b4886147d4034c88584c2d80c5510dbe5e",
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"rules/wfj011.ts": "fcb8bf6685d744af20ad804ce929488257995c74b9a3353b2eacae3768d1c83e",
|
|
10
10
|
"skills/chant-forgejo.md": "a1a560429db736c187e0b34cf8dd9efc6ad771afefcbf6f802d160d3d5274257"
|
|
11
11
|
},
|
|
12
|
-
"composite": "
|
|
12
|
+
"composite": "c0aa68c007aca16ba37d8f890f7c728c6bd5b86645111355612e6f2b7e85c8b1"
|
|
13
13
|
}
|
package/dist/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-forgejo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.1",
|
|
4
4
|
"description": "Forgejo / Codeberg / Gitea Actions lexicon for chant — a thin GitHub Actions dialect",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://intentius.io/chant",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"zod": "^4.3.6",
|
|
57
|
-
"@intentius/chant": "^0.
|
|
58
|
-
"@intentius/chant-lexicon-github": "^0.
|
|
57
|
+
"@intentius/chant": "^0.54.1",
|
|
58
|
+
"@intentius/chant-lexicon-github": "^0.54.1"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"generate": "tsx src/codegen/generate-cli.ts",
|
|
@@ -57,6 +57,14 @@ describe("generateForgejoPipeline: structure (github-shaped)", () => {
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
+
test("the environment identity passes through the dialect untransformed (#2046)", () => {
|
|
61
|
+
const result = generateForgejoPipeline(pilotComponents(), { env: "staging" });
|
|
62
|
+
const parsed = parseYAML(result.yaml);
|
|
63
|
+
expect(parsed.name).toBe("chant-components-staging");
|
|
64
|
+
expect(parsed.env).toEqual({ CHANT_ENV: "staging" });
|
|
65
|
+
expect(result.env).toBe("staging");
|
|
66
|
+
});
|
|
67
|
+
|
|
60
68
|
test("needs: mirrors dependsOn — search-service waits on shared-alb, nothing else", () => {
|
|
61
69
|
const jobs = parsedJobs(generateForgejoPipeline(pilotComponents()).yaml);
|
|
62
70
|
expect(jobs["search-service"].needs).toEqual(["shared-alb"]);
|
|
@@ -56,6 +56,10 @@ export function generateForgejoPipeline(
|
|
|
56
56
|
const doc = buildGithubPipelineDoc(components, options);
|
|
57
57
|
|
|
58
58
|
const forgejoDoc: GithubPipelineDoc = {
|
|
59
|
+
// The environment identity (#2046) is dialect-neutral: name, environment,
|
|
60
|
+
// and the env-map's CHANT_ENV entry pass through untransformed.
|
|
61
|
+
name: doc.name,
|
|
62
|
+
environment: doc.environment,
|
|
59
63
|
on: forgejoize(doc.on, dialectOptions),
|
|
60
64
|
...(doc.env ? { env: forgejoize(doc.env, dialectOptions) } : {}),
|
|
61
65
|
jobsDoc: forgejoize(doc.jobsDoc, dialectOptions),
|
|
@@ -63,5 +67,5 @@ export function generateForgejoPipeline(
|
|
|
63
67
|
jobs: doc.jobs,
|
|
64
68
|
};
|
|
65
69
|
|
|
66
|
-
return { yaml: emitPipelineYAML(forgejoDoc), stages: doc.stages, jobs: doc.jobs };
|
|
70
|
+
return { yaml: emitPipelineYAML(forgejoDoc), stages: doc.stages, jobs: doc.jobs, env: doc.environment };
|
|
67
71
|
}
|