-
Notifications
You must be signed in to change notification settings - Fork 0
Fix examples: separate Mock/Live workflows, add CI validation, fix import-idle script #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1608bd5
Initial plan
Copilot 2c9c03a
Restructure examples: separate Mock/Live/Templates workflows and upda…
Copilot 1b3ba90
Fix: Add templates directory with .gitkeep to resolve test failure
Copilot 903c6a2
Restrict demo script execution to Mock workflows only
Copilot b7ab2a2
Remove restrictive validation - allow Live workflow execution attempts
Copilot 3543bf9
Fix import-idle.ps1 to work with restructured workflow directories
Copilot d9babb9
fix redundant variable assignment repoRoot
blindzero File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Templates directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| Set-StrictMode -Version Latest | ||
|
|
||
| BeforeAll { | ||
| . (Join-Path $PSScriptRoot '_testHelpers.ps1') | ||
| $repoRoot = Get-RepoRootPath | ||
| $importScript = Join-Path -Path $repoRoot -ChildPath 'tools/import-idle.ps1' | ||
| } | ||
|
|
||
| Describe 'Import-IdLE helper script' { | ||
| It 'import-idle.ps1 script exists' { | ||
| $importScript | Should -Exist | ||
| } | ||
|
|
||
| It 'import-idle.ps1 finds workflows in subdirectories' { | ||
| # The script should find workflows in examples/workflows/mock, live, and templates subdirectories | ||
| # This test validates that the script can discover workflows after the directory restructuring | ||
|
|
||
| $workflowDir = Join-Path -Path $repoRoot -ChildPath 'examples/workflows' | ||
|
|
||
| # Verify workflows exist in subdirectories | ||
| $mockWorkflows = Get-ChildItem -Path (Join-Path $workflowDir 'mock') -Filter '*.psd1' -File -ErrorAction SilentlyContinue | ||
| $liveWorkflows = Get-ChildItem -Path (Join-Path $workflowDir 'live') -Filter '*.psd1' -File -ErrorAction SilentlyContinue | ||
|
|
||
| $mockWorkflows | Should -Not -BeNullOrEmpty | ||
| $liveWorkflows | Should -Not -BeNullOrEmpty | ||
|
|
||
| # Verify the script logic for finding workflows recursively | ||
| $allWorkflows = Get-ChildItem -Path $workflowDir -Filter '*.psd1' -File -Recurse | ||
| $allWorkflows | Should -Not -BeNullOrEmpty | ||
| $allWorkflows.Count | Should -BeGreaterThan 5 | ||
| } | ||
|
|
||
| It 'import-idle.ps1 executes without errors' { | ||
| # Execute the import script and verify it completes successfully | ||
| { & $importScript -ErrorAction Stop } | Should -Not -Throw | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.