@smoothbricks/cli 0.10.11 → 0.10.13
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.
|
@@ -258,6 +258,8 @@ function renderE2eDeploymentJob(options) {
|
|
|
258
258
|
${renderRunsOnLine(options.runsOn)}
|
|
259
259
|
timeout-minutes: 15
|
|
260
260
|
if: \${{ needs.main.result == 'success' && needs.main.outputs.deployment-stage != '' }}
|
|
261
|
+
env:
|
|
262
|
+
GH_TOKEN: \${{ github.token }}
|
|
261
263
|
steps:
|
|
262
264
|
# Step 1: GitHub adds "Set up job" automatically
|
|
263
265
|
# Step 2
|
|
@@ -274,6 +276,7 @@ ${renderRunsOnLine(options.runsOn)}
|
|
|
274
276
|
|
|
275
277
|
# Step 4
|
|
276
278
|
- name: Deployment E2E
|
|
279
|
+
# prettier-ignore
|
|
277
280
|
run: smoo github-ci nx-smart --target e2e-deployment --mode run-many --stage "\${{ needs.main.outputs.deployment-stage }}" --name "Deployment E2E" --step 4
|
|
278
281
|
|
|
279
282
|
# Step 5
|
package/package.json
CHANGED
|
@@ -78,10 +78,15 @@ describe('CI workflow definition', () => {
|
|
|
78
78
|
|
|
79
79
|
expect(rendered).toContain('deployment-stage: ${{ steps.deploy.outputs.stage }}');
|
|
80
80
|
expect(rendered).toContain(' e2e-deployment:\n name: Deployment E2E\n needs: main');
|
|
81
|
+
expect(rendered).not.toContain('\n\n\n e2e-deployment:');
|
|
81
82
|
expect(rendered).toContain(
|
|
82
83
|
"if: ${{ needs.main.result == 'success' && needs.main.outputs.deployment-stage != '' }}",
|
|
83
84
|
);
|
|
84
85
|
expect(rendered).toContain('timeout-minutes: 15');
|
|
86
|
+
expect(rendered).toContain(
|
|
87
|
+
"if: ${{ needs.main.result == 'success' && needs.main.outputs.deployment-stage != '' }}\n env:\n GH_TOKEN: ${{ github.token }}\n steps:",
|
|
88
|
+
);
|
|
89
|
+
expect(rendered).toContain('# prettier-ignore\n run: smoo github-ci nx-smart --target e2e-deployment');
|
|
85
90
|
expect(rendered).toContain(
|
|
86
91
|
'smoo github-ci nx-smart --target e2e-deployment --mode run-many --stage "${{ needs.main.outputs.deployment-stage }}" --name "Deployment E2E" --step 4',
|
|
87
92
|
);
|
|
@@ -300,6 +300,8 @@ function renderE2eDeploymentJob(options: CiWorkflowDefinitionOptions): string {
|
|
|
300
300
|
${renderRunsOnLine(options.runsOn)}
|
|
301
301
|
timeout-minutes: 15
|
|
302
302
|
if: \${{ needs.main.result == 'success' && needs.main.outputs.deployment-stage != '' }}
|
|
303
|
+
env:
|
|
304
|
+
GH_TOKEN: \${{ github.token }}
|
|
303
305
|
steps:
|
|
304
306
|
# Step 1: GitHub adds "Set up job" automatically
|
|
305
307
|
# Step 2
|
|
@@ -316,6 +318,7 @@ ${renderRunsOnLine(options.runsOn)}
|
|
|
316
318
|
|
|
317
319
|
# Step 4
|
|
318
320
|
- name: Deployment E2E
|
|
321
|
+
# prettier-ignore
|
|
319
322
|
run: smoo github-ci nx-smart --target e2e-deployment --mode run-many --stage "\${{ needs.main.outputs.deployment-stage }}" --name "Deployment E2E" --step 4
|
|
320
323
|
|
|
321
324
|
# Step 5
|