Skip to content

Commit

Permalink
feat(3022): Mark workflow node as virtual if it corresponds to a virt…
Browse files Browse the repository at this point in the history
…ual job (#559)
  • Loading branch information
sagar1312 authored Mar 11, 2024
1 parent f7bf32c commit aeb930e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/workflowGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ const SCHEMA_WORKFLOW_GRAPH = Joi.object().keys({
nodes: Joi.array().items(
Joi.object()
.keys({
name: requiresValue
name: requiresValue,
virtual: Joi.boolean()
.description('Flag to indicate if the node is a virtual job')
.example(true)
.optional()
})
.unknown()
),
Expand Down
14 changes: 14 additions & 0 deletions test/data/config.workflowGraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ nodes:
- name: ~commit
- name: main
- name: publish
- name: stage@integration:setup
stageName: integration
virtual: true
- name: ci-deploy
stageName: integration
- name: stage@integration:teardown
stageName: integration
virtual: false
- name: sd@123:publish
- name: sd@333:E
- name: G
Expand All @@ -10,6 +18,12 @@ edges:
dest: main
- src: main
dest: publish
- src: publish
dest: stage@integration:setup
- src: stage@integration:setup
dest: ci-deploy
- src: ci-deploy
dest: stage@integration:teardown
- src: sd@123:publish
dest: sd@333:E
- src: sd@333:E
Expand Down

0 comments on commit aeb930e

Please sign in to comment.