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
31
31
process {
32
32
# If we are not running interactively,
33
33
# 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 ) {
35
35
# Instead, just pass thru our input.
36
36
return $InputObject
37
37
}
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ describe Turtle {
74
74
$dataBlockTurtle.Heading | Should - Be 45
75
75
}
76
76
it ' Will not show a turtle in non-interactive mode' {
77
- if ([Environment ]::UserInteractive) {
77
+ if ([Environment ]::UserInteractive -and -not $ env: GITHUB_WORKFLOW ) {
78
78
Write-Warning " Cannot test non-iteractivity interactively"
79
79
} else {
80
80
$dataBlockTurtle = data - supportedCommand turtle, Get-Random {
You can’t perform that action at this time.
0 commit comments