Skip to content

Commit

Permalink
Add new d2x.yml file to define the ci_feature_2gp plan
Browse files Browse the repository at this point in the history
* **Plan Structure**
  - Define the `ci_feature_2gp` plan with name and description
  - Add collect phase with steps to collect org info and metadata
  - Add check phase with actions to check org info and metadata
  - Add run phase with dependencies, deploy metadata, install packages, setup steps, config steps, data steps, and testing steps
  • Loading branch information
jlantz committed Nov 1, 2024
1 parent 750839c commit d14fa93
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions d2x.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
plans:
ci_feature_2gp:
name: "CI Feature 2GP"
description: "Rebuild of the feature_2gp workflow into a modular plan structure"
collect:
steps:
- key: "collect_org_info"
type: "soql"
config:
query: "SELECT Id, Name FROM Organization"
- key: "collect_metadata"
type: "metadata"
config:
types: ["CustomObject", "ApexClass"]
check:
actions:
- key: "check_org_info"
type: "info"
config:
message: "Org information collected successfully"
- key: "check_metadata"
type: "warning"
config:
message: "Metadata collection completed with warnings"
run:
dependencies:
- "dependency1"
- "dependency2"
deploy_metadata:
- "metadata1"
- "metadata2"
install_packages:
- "package1"
- "package2"
setup_steps:
- step_type: "cci"
config:
flow: "setup_flow"
config_steps:
- step_type: "sf"
config:
command: "sfdx force:config:set"
data_steps:
- step_type: "d2x"
config:
command: "d2x data load"
testing_steps:
- step_type: "cci"
config:
flow: "run_tests"

0 comments on commit d14fa93

Please sign in to comment.