File tree Expand file tree Collapse file tree 3 files changed +2
-45
lines changed
tests/scenarios/invalid-missing-test-config Expand file tree Collapse file tree 3 files changed +2
-45
lines changed Original file line number Diff line number Diff line change 3333 with :
3434 SettingsPath : ' ./tests/scenarios/valid/PSModule.yml'
3535
36- - name : Verify Action Succeeded
37- shell : pwsh
38- env :
39- SETTINGS_JSON : ${{ steps.get-settings.outputs.Settings }}
40- run : |
41- if ([string]::IsNullOrEmpty($env:SETTINGS_JSON)) {
42- Write-Error 'Action failed to produce settings output'
43- exit 1
44- }
45- Write-Host '✓ Action executed successfully and produced valid output'
46-
47- # Verify the output is valid JSON
48- try {
49- $settings = $env:SETTINGS_JSON | ConvertFrom-Json
50- Write-Host "✓ Settings output is valid JSON with Name: $($settings.Name)"
51- } catch {
52- Write-Error "Settings output is not valid JSON: $_"
53- exit 1
54- }
55-
5636 ActionTestInvalidMissingTestConfig :
5737 name : Action-Test - [Invalid - Missing Test Config]
5838 runs-on : ubuntu-latest
6848 continue-on-error : true
6949 uses : ./
7050 with :
71- SettingsPath : ' ./tests/scenarios/invalid-missing-test-config /PSModule.yml'
51+ SettingsPath : ' ./tests/scenarios/invalid-percent-target /PSModule.yml'
7252
7353 - name : Verify Action Failed as Expected
7454 shell : pwsh
Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2025 PSModule
3+ Copyright (c) 2026 PSModule
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments