File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ LogGroup 'AfterAll - Global Test Teardown' {
55 $authCases = . " $PSScriptRoot /Data/AuthCases.ps1"
66
77 $id = $env: GITHUB_RUN_ID
8+ if (-not $id ) {
9+ throw ' GITHUB_RUN_ID environment variable is not set. Refusing to clean up test repositories with an unscoped wildcard (would impact concurrent runs).'
10+ }
11+ if (-not $env: Settings ) {
12+ throw ' Settings environment variable is not set. Process-PSModule must populate it with the test suite configuration.'
13+ }
814 $prefix = ' Test'
915
1016 # Derive the list of OS names from the Settings JSON provided by Process-PSModule.
Original file line number Diff line number Diff line change 44LogGroup ' BeforeAll - Global Test Setup' {
55 $authCases = . " $PSScriptRoot /Data/AuthCases.ps1"
66 $id = $env: GITHUB_RUN_ID
7+ if (-not $id ) {
8+ throw ' GITHUB_RUN_ID environment variable is not set. Refusing to create or clean up test repositories with a non-deterministic name.'
9+ }
10+ if (-not $env: Settings ) {
11+ throw ' Settings environment variable is not set. Process-PSModule must populate it with the test suite configuration.'
12+ }
713
814 # Derive the list of OS names from the Settings JSON provided by Process-PSModule.
915 $settings = $env: Settings | ConvertFrom-Json
You can’t perform that action at this time.
0 commit comments