Skip to content

Commit

Permalink
chore: update sf-deploy example
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiand391 committed Dec 13, 2024
1 parent d601d37 commit 4e407cc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion examples/sf-specific/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,20 @@ const ms = new MultiStageOutput<Data>({
data?.mdapiDeploy?.numberTestsTotal && data?.mdapiDeploy?.numberTestsCompleted
? formatProgress(data?.mdapiDeploy?.numberTestsCompleted, data?.mdapiDeploy?.numberTestsTotal)
: undefined,
label: 'Tests',
label: 'Successful',
stage: 'Running Tests',
type: 'dynamic-key-value',
},
{
get: (data): string | undefined =>
data?.mdapiDeploy?.numberTestsTotal && data?.mdapiDeploy?.numberTestsCompleted
? formatProgress(data?.mdapiDeploy?.numberTestErrors, data?.mdapiDeploy?.numberTestsTotal)
: undefined,
label: 'Failed',
stage: 'Running Tests',
type: 'dynamic-key-value',
},

{
get: (data): string | undefined =>
data?.sourceMemberPolling?.original
Expand Down Expand Up @@ -130,6 +140,7 @@ for (let i = 0; i <= tests; i++) {
mdapiDeploy: {
numberComponentsDeployed: 10,
numberComponentsTotal: 10,
numberTestErrors: 0,
numberTestsCompleted: i,
numberTestsTotal: tests,
},
Expand Down

0 comments on commit 4e407cc

Please sign in to comment.