diff --git a/.github/workflows/ps-module.yml b/.github/workflows/ps-module.yml index 619f6f3e..b597bcbb 100644 --- a/.github/workflows/ps-module.yml +++ b/.github/workflows/ps-module.yml @@ -28,13 +28,13 @@ jobs: fetch-depth: 0 - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0.9.8 + uses: gittools/actions/gitversion/setup@v0.9.10 with: - versionSpec: '5.6.9' + versionSpec: '5.x' - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.8 + uses: gittools/actions/gitversion/execute@v0.9.10 with: useConfigFile: true configFilePath: GitVersion.yml diff --git a/tools/build.ps1 b/tools/build.ps1 index 3ab4de70..dfa1e8d2 100644 --- a/tools/build.ps1 +++ b/tools/build.ps1 @@ -50,14 +50,20 @@ $Requirements = @( }, @{ Name = "Pester" - Version = "5.2.1" + Version = "5.2.2" }, @{ Name = "platyPS" - Version = "0.14.1" + Version = "0.14.2" } ) +# --- Configure default PowerShell Gallery Repository if not present +if (-not (Get-PSRepository)){ + + Set-PSRepository -Name PSGallery -InstallationPolicy Trusted +} + # --- Install dependencies Write-Host "Installing required modules:" foreach ($RequiredModule in $Requirements) { diff --git a/tools/build.psake.ps1 b/tools/build.psake.ps1 index 8171a3af..de9fb2c0 100644 --- a/tools/build.psake.ps1 +++ b/tools/build.psake.ps1 @@ -1,6 +1,6 @@ using namespace System.Management.Automation.Language #Requires -Modules @{ModuleName="PSake"; RequiredVersion="4.9.0"},@{ModuleName="PSScriptAnalyzer"; RequiredVersion="1.19.1"},@{ModuleName="BuildHelpers"; RequiredVersion="2.0.16"} -#Requires -Modules @{ModuleName="Pester"; RequiredVersion="5.2.1"},@{ModuleName="platyPS"; RequiredVersion="0.14.1"} +#Requires -Modules @{ModuleName="Pester"; RequiredVersion="5.2.2"},@{ModuleName="platyPS"; RequiredVersion="0.14.2"} Write-Host "Module versions are:" Get-Module -Name Psake,PSScriptAnalyzer,BuildHelpers,Pester,platyPS