You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **Makes Smart Decisions**: Determines which workflow jobs should execute based on collected data
470
+
- **Prepares Test Matrices**: Generates dynamic test suite configurations for parallel execution
471
+
- **Optimizes Execution**: Skips unnecessary jobs to reduce CI/CD runtime and resource usage
472
+
473
+
The Get-Settings phase embodies the principle of **context-aware workflow execution**, ensuring that each workflow run performs only the necessary tasks based on the current state and configuration.
462
474
463
475
#### Always Execute (All PR States)
464
476
465
-
- **Get-Settings** - Configuration loading
477
+
- **Get-Settings** - Configuration loading and workflow orchestration
466
478
- **Build-Module** - Module compilation
467
479
- **Build-Docs** - Documentation generation
468
480
- **Build-Site** - Static site generation
@@ -667,7 +679,12 @@ jobs:
667
679
### Workflow Execution Order
668
680
669
681
The standard execution order for Process-PSModule workflows MUST be:
670
-
1. **Get-Settings** - Reads configuration and prepares test matrices
682
+
1. **Gather** - Reads configuration, analyzes context, and prepares workflow execution plan
683
+
- Loads settings from `.github/PSModule.yml` (or JSON/PSD1)
684
+
- Examines GitHub event type, PR state, and labels
685
+
- Generates dynamic test matrices for parallel execution
686
+
- Determines which jobs should execute based on configuration and context
687
+
- Provides intelligent deployment orchestration for CI/CD workflows
671
688
2. **Build-Module** - Compiles source into module
672
689
3. **Test-SourceCode** - Parallel matrix testing of source code standards
673
690
4. **Lint-SourceCode** - Parallel matrix linting of source code
This approach ensures that each workflow run is optimized for its specific context, reducing unnecessary work while maintaining comprehensive validation when needed.
112
+
71
113
## Usage
72
114
73
115
To use the workflow, create a new file in the `.github/workflows` directory of the module repository and add the following content.
@@ -202,7 +244,7 @@ This table shows when each job runs based on the trigger scenario:
0 commit comments