@intentius/chant-lexicon-github 0.124.45 → 0.124.48

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 (69) hide show
  1. package/dist/action-pins.d.ts +17 -27
  2. package/dist/action-pins.d.ts.map +1 -1
  3. package/dist/action-pins.js +39 -27
  4. package/dist/components/ci-jobs.d.ts +5 -2
  5. package/dist/components/ci-jobs.d.ts.map +1 -1
  6. package/dist/components/ci-jobs.js +8 -5
  7. package/dist/components/generate-op-pipeline.d.ts +7 -0
  8. package/dist/components/generate-op-pipeline.d.ts.map +1 -1
  9. package/dist/components/generate-op-pipeline.js +26 -3
  10. package/dist/components/generate-op-waves-pipeline.d.ts +13 -3
  11. package/dist/components/generate-op-waves-pipeline.d.ts.map +1 -1
  12. package/dist/components/generate-op-waves-pipeline.js +24 -5
  13. package/dist/components/generate-pipeline.d.ts.map +1 -1
  14. package/dist/components/generate-pipeline.js +55 -10
  15. package/dist/components/review-jobs.d.ts +55 -0
  16. package/dist/components/review-jobs.d.ts.map +1 -0
  17. package/dist/components/review-jobs.js +130 -0
  18. package/dist/composites/cache.d.ts.map +1 -1
  19. package/dist/composites/cache.js +2 -1
  20. package/dist/composites/checkout.d.ts +3 -3
  21. package/dist/composites/checkout.js +1 -1
  22. package/dist/composites/docker-build.js +4 -4
  23. package/dist/composites/download-artifact.d.ts.map +1 -1
  24. package/dist/composites/download-artifact.js +2 -1
  25. package/dist/composites/go-ci.js +4 -4
  26. package/dist/composites/node-pipeline.js +5 -5
  27. package/dist/composites/python-ci.js +2 -2
  28. package/dist/composites/setup-go.d.ts.map +1 -1
  29. package/dist/composites/setup-go.js +2 -1
  30. package/dist/composites/setup-node.d.ts +3 -3
  31. package/dist/composites/setup-node.js +1 -1
  32. package/dist/composites/setup-python.d.ts.map +1 -1
  33. package/dist/composites/setup-python.js +2 -1
  34. package/dist/composites/upload-artifact.d.ts.map +1 -1
  35. package/dist/composites/upload-artifact.js +2 -1
  36. package/dist/integrity.json +2 -2
  37. package/dist/manifest.json +1 -1
  38. package/package.json +2 -2
  39. package/src/action-pins.test.ts +29 -6
  40. package/src/action-pins.ts +48 -34
  41. package/src/components/__fixtures__/pr-loop-build.github.golden.yml +8 -9
  42. package/src/components/__fixtures__/pr-loop-record.github.golden.yml +4 -5
  43. package/src/components/__fixtures__/pr-loop-waves.github.golden.yml +16 -17
  44. package/src/components/__fixtures__/pr-loop.github.golden.yml +8 -9
  45. package/src/components/__golden__/op-waves-jobs.yml +71 -9
  46. package/src/components/ci-jobs.ts +8 -5
  47. package/src/components/generate-op-pipeline.review.test.ts +152 -0
  48. package/src/components/generate-op-pipeline.test.ts +5 -4
  49. package/src/components/generate-op-pipeline.ts +33 -3
  50. package/src/components/generate-op-waves-pipeline.test.ts +2 -1
  51. package/src/components/generate-op-waves-pipeline.ts +25 -5
  52. package/src/components/generate-pipeline.test.ts +10 -9
  53. package/src/components/generate-pipeline.ts +57 -9
  54. package/src/components/generate-pr-pipeline.locks.test.ts +68 -0
  55. package/src/components/generate-pr-pipeline.test.ts +6 -4
  56. package/src/components/generate-pr-waves-pipeline.test.ts +3 -2
  57. package/src/components/review-jobs.ts +165 -0
  58. package/src/composites/cache.ts +2 -1
  59. package/src/composites/checkout.ts +4 -4
  60. package/src/composites/composites.test.ts +23 -22
  61. package/src/composites/docker-build.ts +4 -4
  62. package/src/composites/download-artifact.ts +2 -1
  63. package/src/composites/go-ci.ts +4 -4
  64. package/src/composites/node-pipeline.ts +5 -5
  65. package/src/composites/python-ci.ts +2 -2
  66. package/src/composites/setup-go.ts +2 -1
  67. package/src/composites/setup-node.ts +4 -4
  68. package/src/composites/setup-python.ts +2 -1
  69. package/src/composites/upload-artifact.ts +2 -1
@@ -50,7 +50,7 @@ export const PythonCI = Composite((props: PythonCIProps) => {
50
50
  new Step({ name: "Checkout", uses: actionRef("actions/checkout") }),
51
51
  new Step({
52
52
  name: "Setup Python",
53
- uses: "actions/setup-python@v5",
53
+ uses: actionRef("actions/setup-python"),
54
54
  with: { "python-version": pythonVersion, cache: cacheType },
55
55
  }),
56
56
  ...installSteps,
@@ -67,7 +67,7 @@ export const PythonCI = Composite((props: PythonCIProps) => {
67
67
  new Step({ name: "Checkout", uses: actionRef("actions/checkout") }),
68
68
  new Step({
69
69
  name: "Setup Python",
70
- uses: "actions/setup-python@v5",
70
+ uses: actionRef("actions/setup-python"),
71
71
  with: { "python-version": pythonVersion, cache: cacheType },
72
72
  }),
73
73
  ...installSteps.map((s: any) => {
@@ -1,4 +1,5 @@
1
1
  import { Composite, mergeDefaults } from "@intentius/chant";
2
+ import { actionRef } from "../action-pins";
2
3
  import { Step } from "../generated/index";
3
4
 
4
5
  export interface SetupGoProps {
@@ -19,7 +20,7 @@ export const SetupGo = Composite((props: SetupGoProps) => {
19
20
 
20
21
  const step = new Step(mergeDefaults({
21
22
  name: "Setup Go",
22
- uses: "actions/setup-go@v5",
23
+ uses: actionRef("actions/setup-go"),
23
24
  ...(Object.keys(withObj).length > 0 ? { with: withObj } : {}),
24
25
  }, defaults?.step));
25
26
 
@@ -8,9 +8,9 @@ export interface SetupNodeProps {
8
8
  cache?: string;
9
9
  cacheFilePath?: string;
10
10
  /**
11
- * `"tag"` (default) emits the action's major tag. `"sha"` emits the commit
12
- * SHA from the lexicon's pin table with the version as a YAML comment, which
13
- * passes GHA021, GHA029 and GHA059.
11
+ * `"sha"` (default) emits the commit SHA from the pin table with the version as
12
+ * a YAML comment, which passes GHA021, GHA029 and GHA059. `"tag"` emits the
13
+ * action's major tag.
14
14
  */
15
15
  pin?: ActionPinMode;
16
16
  defaults?: {
@@ -28,7 +28,7 @@ export const SetupNode = Composite((props: SetupNodeProps) => {
28
28
 
29
29
  const step = new Step(mergeDefaults({
30
30
  name: "Setup Node.js",
31
- uses: actionRef("actions/setup-node", props.pin),
31
+ uses: actionRef("actions/setup-node", props.pin ?? "sha"),
32
32
  ...(Object.keys(withObj).length > 0 ? { with: withObj } : {}),
33
33
  }, defaults?.step));
34
34
 
@@ -1,4 +1,5 @@
1
1
  import { Composite, mergeDefaults } from "@intentius/chant";
2
+ import { actionRef } from "../action-pins";
2
3
  import { Step } from "../generated/index";
3
4
 
4
5
  export interface SetupPythonProps {
@@ -19,7 +20,7 @@ export const SetupPython = Composite((props: SetupPythonProps) => {
19
20
 
20
21
  const step = new Step(mergeDefaults({
21
22
  name: "Setup Python",
22
- uses: "actions/setup-python@v5",
23
+ uses: actionRef("actions/setup-python"),
23
24
  ...(Object.keys(withObj).length > 0 ? { with: withObj } : {}),
24
25
  }, defaults?.step));
25
26
 
@@ -1,4 +1,5 @@
1
1
  import { Composite, mergeDefaults } from "@intentius/chant";
2
+ import { actionRef } from "../action-pins";
2
3
  import { Step } from "../generated/index";
3
4
 
4
5
  export interface UploadArtifactProps {
@@ -22,7 +23,7 @@ export const UploadArtifact = Composite((props: UploadArtifactProps) => {
22
23
 
23
24
  const step = new Step(mergeDefaults({
24
25
  name: "Upload Artifact",
25
- uses: "actions/upload-artifact@v4",
26
+ uses: actionRef("actions/upload-artifact"),
26
27
  with: withObj,
27
28
  }, defaults?.step));
28
29