@factorialco/gat 3.5.0 → 3.8.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/job.d.ts +1 -0
- package/dist/workflow.js +3 -0
- package/dist/workflow.spec.js +20 -0
- package/package.json +1 -1
package/dist/job.d.ts
CHANGED
package/dist/workflow.js
CHANGED
package/dist/workflow.spec.js
CHANGED
|
@@ -126,6 +126,26 @@ const workflow_1 = require("./workflow");
|
|
|
126
126
|
});
|
|
127
127
|
(0, vitest_1.expect)(await workflow.compile()).toMatchSnapshot();
|
|
128
128
|
});
|
|
129
|
+
(0, vitest_1.it)("allows a job matrix with max-parallel", async () => {
|
|
130
|
+
const workflow = new workflow_1.Workflow("Matrix with max parallel");
|
|
131
|
+
workflow.on("push").addJob("job1", {
|
|
132
|
+
matrix: {
|
|
133
|
+
elements: [
|
|
134
|
+
{
|
|
135
|
+
id: "food",
|
|
136
|
+
options: ["🍕", "🍔", "🌮"],
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
maxParallel: 2,
|
|
140
|
+
},
|
|
141
|
+
steps: [
|
|
142
|
+
{
|
|
143
|
+
run: "echo ${{ matrix.food }}",
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
});
|
|
147
|
+
(0, vitest_1.expect)(await workflow.compile()).toMatchSnapshot();
|
|
148
|
+
});
|
|
129
149
|
(0, vitest_1.it)("allows uses steps", async () => {
|
|
130
150
|
const workflow = new workflow_1.Workflow("Uses steps");
|
|
131
151
|
workflow
|