|
28 | 28 | persist-credentials: false |
29 | 29 |
|
30 | 30 | - name: Action-Test |
| 31 | + id: get-settings |
31 | 32 | uses: ./ |
32 | 33 | with: |
33 | | - Subject: PSModule |
| 34 | + SettingsPath: './tests/PSModule.yml' |
| 35 | + |
| 36 | + - name: Validate Settings Output |
| 37 | + shell: pwsh |
| 38 | + run: | |
| 39 | + $settings = '${{ steps.get-settings.outputs.Settings }}' | ConvertFrom-Json |
| 40 | + if (-not $settings) { |
| 41 | + Write-Error "Settings output is empty" |
| 42 | + exit 1 |
| 43 | + } |
| 44 | + Write-Host "✓ Settings retrieved successfully" |
| 45 | + Write-Host "Settings: $($settings | ConvertTo-Json -Depth 2)" |
| 46 | +
|
| 47 | + - name: Validate SourceCodeTestSuites Output |
| 48 | + shell: pwsh |
| 49 | + run: | |
| 50 | + $suites = '${{ steps.get-settings.outputs.SourceCodeTestSuites }}' |
| 51 | + if ([string]::IsNullOrEmpty($suites)) { |
| 52 | + Write-Host "⚠ SourceCodeTestSuites is empty (this may be expected)" |
| 53 | + } else { |
| 54 | + $suitesObj = $suites | ConvertFrom-Json |
| 55 | + Write-Host "✓ SourceCodeTestSuites: $($suitesObj.Count) suite(s) found" |
| 56 | + } |
| 57 | +
|
| 58 | + - name: Validate PSModuleTestSuites Output |
| 59 | + shell: pwsh |
| 60 | + run: | |
| 61 | + $suites = '${{ steps.get-settings.outputs.PSModuleTestSuites }}' |
| 62 | + if ([string]::IsNullOrEmpty($suites)) { |
| 63 | + Write-Host "⚠ PSModuleTestSuites is empty (this may be expected)" |
| 64 | + } else { |
| 65 | + $suitesObj = $suites | ConvertFrom-Json |
| 66 | + Write-Host "✓ PSModuleTestSuites: $($suitesObj.Count) suite(s) found" |
| 67 | + } |
| 68 | +
|
| 69 | + - name: Validate ModuleTestSuites Output |
| 70 | + shell: pwsh |
| 71 | + run: | |
| 72 | + $suites = '${{ steps.get-settings.outputs.ModuleTestSuites }}' |
| 73 | + if ([string]::IsNullOrEmpty($suites)) { |
| 74 | + Write-Host "⚠ ModuleTestSuites is empty (this may be expected)" |
| 75 | + } else { |
| 76 | + $suitesObj = $suites | ConvertFrom-Json |
| 77 | + Write-Host "✓ ModuleTestSuites: $($suitesObj.Count) suite(s) found" |
| 78 | + } |
0 commit comments