Skip to content

Commit

Permalink
SDK-813: Break down task set (#181)
Browse files Browse the repository at this point in the history
* SDK-813 break down task set

* Revert "SDK-813 break down task set"

This reverts commit e2579fd.

* SDK-813 update workflow.yaml

* SDK-813: Updated stop_on_error for acp:openapi:create

Co-authored-by: Kyrylo Meretskyi <[email protected]>
  • Loading branch information
sergeyspryker and Kyrylo-Meretskyi authored Sep 7, 2022
1 parent b5c1a7b commit 8529ead
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 43 deletions.
55 changes: 12 additions & 43 deletions config/packages/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,8 @@ framework:
- config
- translation
- acp-validated
- openapi
- openapi-validated
- asyncapi
- asyncapi-validated
- asyncapi-generate
- install
- app-validate
- openapi-created
- asyncapi-created
- app-validated
- done
transitions:
Expand Down Expand Up @@ -81,49 +76,23 @@ framework:
metadata:
task: acp:app:validate
error: Please fix the mentioned issues and re-run the workflow to continue.

CreateOpenApi:
from: acp-validated
to: openapi
metadata:
task: acp:openapi:create
ValidateOpenApi:
from: openapi
to: openapi-validated
metadata:
task: acp:openapi:validate
error: Please fix the mentioned issues and re-run the workflow to continue.
GenerateOpenApiCode:
from: openapi-validated
to: app-validate
to: openapi-created
metadata:
task: acp:openapi:generate

task: acp:openapi:full-flow
CreateAsyncapi:
from: app-validate
to: asyncapi
metadata:
task: acp:asyncapi:create-full
ValidateAsyncapi:
from: asyncapi
to: asyncapi-validated
from: openapi-created
to: asyncapi-created
metadata:
task: acp:asyncapi:validate
error: Please fix the mentioned issues and re-run the workflow to continue.
GenerateAsyncapiCode:
from: asyncapi-validated
to: asyncapi-generate
metadata:
task: acp:asyncapi:generate

task: acp:asyncapi:full-flow
RunInstall:
from: [app-validate, asyncapi-generate]
to: app-validated
metadata:
task: install

from: [openapi-created, asyncapi-created]
to: app-validated
metadata:
task: install
ValidateProject:
from: [app-validated, asyncapi-generate]
from: [app-validated, asyncapi-created]
to: done
metadata:
task: pbc:validate
Expand Down
18 changes: 18 additions & 0 deletions src/Extension/Task/AcpAppAsyncApiFullFlowTaskSet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
id: "acp:asyncapi:full-flow"
short_description: "Create ACP AsyncAPI"
help: ~
stage: build
version: 1.0.0
command: ~
type: task_set
tasks:
- id: "acp:asyncapi:create"
stop_on_error: true
- id: "acp:asyncapi:message-add"
stop_on_error: true
- id: "acp:asyncapi:validate"
stop_on_error: true
- id: "acp:asyncapi:generate"
stop_on_error: true
placeholders: []
16 changes: 16 additions & 0 deletions src/Extension/Task/AcpAppOpenApiFullFlowTaskSet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
id: "acp:openapi:full-flow"
short_description: "Create ACP OpenAPI"
help: ~
stage: build
version: 1.0.0
command: ~
type: task_set
tasks:
- id: "acp:openapi:create"
stop_on_error: false
- id: "acp:openapi:validate"
stop_on_error: true
- id: "acp:openapi:generate"
stop_on_error: true
placeholders: []

0 comments on commit 8529ead

Please sign in to comment.