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

Enhancements #96

Merged
merged 5 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion actions_bootstrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ foreach ($module in $modulesToInstall) {
ErrorAction = 'Stop'
}
try {
if ($module.ModuleName -eq 'Pester' -and $IsWindows) {
if ($module.ModuleName -eq 'Pester' -and ($IsWindows -or $PSVersionTable.PSVersion -le [version]'5.1')) {
# special case for Pester certificate mismatch with older Pester versions - https://github.com/pester/Pester/issues/2389
# this only affects windows builds
Install-Module @installSplat -SkipPublisherCheck
Expand Down
8 changes: 8 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.22.0]

- Catesta template module changes
- Improved Windows detection checks for Pester module installation
- Catesta primary module changes
- Improved Windows detection checks for Pester module installation
- Fixed `FileChecks.Tests.ps1` where certain tests were not being run.

## [2.21.0]

- Catesta template module changes
Expand Down
2 changes: 1 addition & 1 deletion docs/Catesta.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Module Name: Catesta
Module Guid: 6796b193-9013-468a-b022-837749af2d06
Download Help Link: NA
Help Version: 2.21.0
Help Version: 2.22.0
Locale: en-US
---

Expand Down
2 changes: 1 addition & 1 deletion src/Catesta/Catesta.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'Catesta.psm1'

# Version number of this module.
ModuleVersion = '2.21.0'
ModuleVersion = '2.22.0'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
2 changes: 1 addition & 1 deletion src/Catesta/Resources/AWS/install_modules.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ else {
ErrorAction = 'Stop'
}
try {
if ($module.ModuleName -eq 'Pester' -and $IsWindows) {
if ($module.ModuleName -eq 'Pester' -and ($IsWindows -or $PSVersionTable.PSVersion -le [version]'5.1')) {
# special case for Pester certificate mismatch with older Pester versions - https://github.com/pester/Pester/issues/2389
# this only affects windows builds
Install-Module @installSplat -SkipPublisherCheck
Expand Down
2 changes: 1 addition & 1 deletion src/Catesta/Resources/Azure/actions_bootstrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ foreach ($module in $modulesToInstall) {
ErrorAction = 'Stop'
}
try {
if ($module.ModuleName -eq 'Pester' -and $IsWindows) {
if ($module.ModuleName -eq 'Pester' -and ($IsWindows -or $PSVersionTable.PSVersion -le [version]'5.1')) {
# special case for Pester certificate mismatch with older Pester versions - https://github.com/pester/Pester/issues/2389
# this only affects windows builds
Install-Module @installSplat -SkipPublisherCheck
Expand Down
2 changes: 1 addition & 1 deletion src/Catesta/Resources/Bitbucket/actions_bootstrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ foreach ($module in $modulesToInstall) {
ErrorAction = 'Stop'
}
try {
if ($module.ModuleName -eq 'Pester' -and $IsWindows) {
if ($module.ModuleName -eq 'Pester' -and ($IsWindows -or $PSVersionTable.PSVersion -le [version]'5.1')) {
# special case for Pester certificate mismatch with older Pester versions - https://github.com/pester/Pester/issues/2389
# this only affects windows builds
Install-Module @installSplat -SkipPublisherCheck
Expand Down
2 changes: 1 addition & 1 deletion src/Catesta/Resources/GitHubActions/actions_bootstrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ foreach ($module in $modulesToInstall) {
ErrorAction = 'Stop'
}
try {
if ($module.ModuleName -eq 'Pester' -and $IsWindows) {
if ($module.ModuleName -eq 'Pester' -and ($IsWindows -or $PSVersionTable.PSVersion -le [version]'5.1')) {
# special case for Pester certificate mismatch with older Pester versions - https://github.com/pester/Pester/issues/2389
# this only affects windows builds
Install-Module @installSplat -SkipPublisherCheck
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ foreach ($module in $modulesToInstall) {
ErrorAction = 'Stop'
}
try {
if ($module.ModuleName -eq 'Pester' -and $IsWindows) {
if ($module.ModuleName -eq 'Pester' -and ($IsWindows -or $PSVersionTable.PSVersion -le [version]'5.1')) {
# special case for Pester certificate mismatch with older Pester versions - https://github.com/pester/Pester/issues/2389
# this only affects windows builds
Install-Module @installSplat -SkipPublisherCheck
Expand Down
2 changes: 1 addition & 1 deletion src/Catesta/Resources/GitLab/actions_bootstrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ foreach ($module in $modulesToInstall) {
ErrorAction = 'Stop'
}
try {
if ($module.ModuleName -eq 'Pester' -and $IsWindows) {
if ($module.ModuleName -eq 'Pester' -and ($IsWindows -or $PSVersionTable.PSVersion -le [version]'5.1')) {
# special case for Pester certificate mismatch with older Pester versions - https://github.com/pester/Pester/issues/2389
# this only affects windows builds
Install-Module @installSplat -SkipPublisherCheck
Expand Down
2 changes: 1 addition & 1 deletion src/Catesta/Resources/Module/plasterManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<metadata>
<name>Catesta</name>
<id>258a61ba-566b-4c3a-8230-c2b6861a1a8d</id>
<version>2.20.0</version>
<version>2.22.0</version>
<title>Catesta</title>
<description>Scaffolds a new PowerShell module project</description>
<author>Jake Morrison</author>
Expand Down
2 changes: 1 addition & 1 deletion src/Catesta/Resources/Vault/plasterManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<metadata>
<name>Catesta</name>
<id>d531e058-52b8-4dd2-8162-01c95d1eb8f7</id>
<version>2.20.0</version>
<version>2.22.0</version>
<title>Catesta</title>
<description>Scaffolds a new PowerShell SecretManagement extension vault module project</description>
<author>Jake Morrison</author>
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Integration/FileChecks.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BeforeAll {
BeforeDiscovery {
Set-Location -Path $PSScriptRoot
$ModuleName = 'Catesta'
$resourcePath1 = [System.IO.Path]::Combine( '..', '..', 'Artifacts', 'Resources')
Expand Down
Loading