File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function Show-Turtle
3131 process {
3232 # If we are not running interactively,
3333 # we obviously do not want to try to show something on the screen.
34- if (-not [Environment ]::UserInteractive) {
34+ if (-not [Environment ]::UserInteractive -or $ env: GITHUB_WORKFLOW ) {
3535 # Instead, just pass thru our input.
3636 return $InputObject
3737 }
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ describe Turtle {
7474 $dataBlockTurtle.Heading | Should - Be 45
7575 }
7676 it ' Will not show a turtle in non-interactive mode' {
77- if ([Environment ]::UserInteractive) {
77+ if ([Environment ]::UserInteractive -and -not $ env: GITHUB_WORKFLOW ) {
7878 Write-Warning " Cannot test non-iteractivity interactively"
7979 } else {
8080 $dataBlockTurtle = data - supportedCommand turtle, Get-Random {
You can’t perform that action at this time.
0 commit comments