@intentius/chant-lexicon-forgejo 0.79.0 → 0.80.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "42928b155d2662927448c8d09e33641e52f660e5b8c89b7f0bc320fdcacc2972",
4
+ "manifest.json": "07bace16712ce01b8d29bf2bff8bda5895d979e0a8f095ec3b352f0392795148",
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": "74d9370f27b14dc23d482f8fed444fa4e57581f364b2712e559ccbfccde18637"
12
+ "composite": "48d71cec688480cade4f5524f0513445c14d8b2d2bd69e22510f6415f23af2d9"
13
13
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forgejo",
3
- "version": "0.79.0",
3
+ "version": "0.80.0",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "Forgejo",
6
6
  "intrinsics": [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-forgejo",
3
- "version": "0.79.0",
3
+ "version": "0.80.0",
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.79.0",
58
- "@intentius/chant-lexicon-github": "^0.79.0"
57
+ "@intentius/chant": "^0.80.0",
58
+ "@intentius/chant-lexicon-github": "^0.80.0"
59
59
  },
60
60
  "scripts": {
61
61
  "generate": "tsx src/codegen/generate-cli.ts",
@@ -111,3 +111,23 @@ describe("generateForgejoPipeline: dialect applied", () => {
111
111
  expect(all.some((r) => r === "https://code.forgejo.org/actions/checkout@v4")).toBe(true);
112
112
  });
113
113
  });
114
+
115
+ describe("generateForgejoPipeline: a promote job (#2575)", () => {
116
+ test("carries the github promote job and archive upload through the dialect", () => {
117
+ const components: DriverComponent[] = [
118
+ {
119
+ name: "api",
120
+ deploy: [
121
+ { phase: "Build", steps: [{ kind: "docker-build", context: ".", into: "dist/api.tar" }] },
122
+ { phase: "Publish", steps: [{ kind: "publish-image", from: "archive:dist/api.tar" }] },
123
+ ],
124
+ },
125
+ ];
126
+ const jobs = parsedJobs(generateForgejoPipeline(components, { env: "staging", promoteTo: "prod" }).yaml);
127
+ expect(jobs["api"].steps.some((s) => s.name === "Upload api build archive")).toBe(true);
128
+ const promote = jobs["promote-prod"];
129
+ expect(promote.needs).toEqual(["api"]);
130
+ expect(promote.steps.find((s) => s.name === "Download api build archive")?.with).toEqual({ name: "api-archive", path: "dist" });
131
+ expect(promote.steps.some((s) => s.run === "chant components promote --from staging --to prod")).toBe(true);
132
+ });
133
+ });