Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to skip version check #567

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions powershell/public/Invoke-Maester.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ function Invoke-Maester {

# Disable Telemetry
# If set, telemetry information will not be logged.
[switch] $DisableTelemetry
[switch] $DisableTelemetry,
`
# Skip the version check.
# If set, the version check will not be performed.
[switch] $SkipVersionCheck

)

Expand Down Expand Up @@ -348,7 +352,9 @@ function Invoke-Maester {
Write-Host "Skipped ⚫: $($pesterResults.SkippedCount)`n" -ForegroundColor DarkGray
}

Get-IsNewMaesterVersionAvailable | Out-Null
if (-not $SkipVersionCheck) {
Get-IsNewMaesterVersionAvailable | Out-Null
}

Write-MtProgress -Activity "🔥 Completed tests" -Status "Total $($pesterResults.TotalCount) " -Completed -Force # Clear progress bar
}
Expand Down
Loading