Skip to content

Commit

Permalink
Test good workflow once more.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnybottles committed Nov 26, 2024
1 parent d08367e commit c818241
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Hawk/tests/general/Test-PreCommitHook.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# 3. Observe the PSScriptAnalyzer warnings/errors

#region Good Code Examples - These will pass PSScriptAnalyzer
# test
# tests
function Test-GoodFunction {
[CmdletBinding()]
param (
Expand Down
22 changes: 11 additions & 11 deletions build/vsts-prerequisites.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ $modules = @("Pester", "PSFramework", "PSModuleDevelopment")
# Automatically add missing dependencies
# TODO: uncomment this block of code below and fix RobustCloudCommand error.

# $data = Import-PowerShellDataFile -Path "$PSScriptRoot\..\Hawk\Hawk.psd1"
# foreach ($dependency in $data.RequiredModules) {
# if ($dependency -is [string]) {
# if ($modules -contains $dependency) { continue }
# $modules += $dependency
# }
# else {
# if ($modules -contains $dependency.ModuleName) { continue }
# $modules += $dependency.ModuleName
# }
# }
$data = Import-PowerShellDataFile -Path "$PSScriptRoot\..\Hawk\Hawk.psd1"
foreach ($dependency in $data.RequiredModules) {
if ($dependency -is [string]) {
if ($modules -contains $dependency) { continue }
$modules += $dependency
}
else {
if ($modules -contains $dependency.ModuleName) { continue }
$modules += $dependency.ModuleName
}
}

foreach ($module in $modules) {
# Write-Output "Installing module: $module"
Expand Down

0 comments on commit c818241

Please sign in to comment.