Skip to content

⚙️ [Maintenance]: Lock Pester test dependency to the 6.x major version - #17

Open
Marius Storhaug (MariusStorhaug) wants to merge 4 commits into
mainfrom
fix/hardlock-pester-5.8.0
Open

⚙️ [Maintenance]: Lock Pester test dependency to the 6.x major version#17
Marius Storhaug (MariusStorhaug) wants to merge 4 commits into
mainfrom
fix/hardlock-pester-5.8.0

Conversation

@MariusStorhaug

@MariusStorhaugMarius Storhaug (MariusStorhaug) commented Jul 5, 2026

Copy link
Copy Markdown
Member

This module's Pester tests now lock to the 6.x major version, consistent with the rest of the ecosystem. This re-establishes the requirement (removed in #16) as a major-version lock rather than the earlier exact 5.8.0 pin, now that Pester 6.0.0 is published.

Changed: tests lock to the Pester 6.x major

#Requires -Modules@{ ModuleName='Pester'; ModuleVersion='6.0.0'; MaximumVersion='6.*' }

Any Pester 6.x satisfies it, so minor and patch updates no longer need a PR — only a new major does.

Technical Details

CopilotAI review requested due to automatic review settings July 5, 2026 17:17
@github-actions

Copy link
Copy Markdown

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

PatternDescription
^src/Matches files where path matches this pattern
^README\.md$Matches files where path matches this pattern

Build, test, and publish stages will be skipped for this PR.

If you believe this is incorrect, please verify that your changes are in the correct locations.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reintroduces a #Requires -Modules directive in the test entrypoint to enforce a specific Pester dependency (version + GUID) for reproducible test execution.

Changes:

  • Adds #Requires -Modules to tests/PSCustomObject.Tests.ps1 pinning Pester to 5.8.0 and a specific module GUID.
  • Shifts the test file header so the #Requires directive is evaluated before any test code/attributes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment threadtests/PSCustomObject.Tests.ps1 Outdated
@github-actions

Copy link
Copy Markdown

Super-linter summary

LanguageValidation result
CHECKOVPass ✅
GITHUB_ACTIONSPass ✅
GITLEAKSPass ✅
GIT_MERGE_CONFLICT_MARKERSPass ✅
MARKDOWNPass ✅
NATURAL_LANGUAGEPass ✅
POWERSHELLPass ✅
PRE_COMMITPass ✅
SPELL_CODESPELLPass ✅
TRIVYPass ✅
YAMLPass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

Use ModuleVersion 6.0.0 with MaximumVersion 6.999.999 instead of a hard-locked 5.8.0, so tests accept any Pester 6.x while a future major must be adopted deliberately.
@MariusStorhaugMarius Storhaug (MariusStorhaug) changed the title ⚙️ [Maintenance]: Hard-lock Pester test dependency to 5.8.0 by GUID⚙️ [Maintenance]: Lock Pester test dependency to the 6.x major version by GUIDJul 7, 2026
@github-actions

Copy link
Copy Markdown

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

PatternDescription
^src/Matches files where path matches this pattern
^README\.md$Matches files where path matches this pattern

Build, test, and publish stages will be skipped for this PR.

If you believe this is incorrect, please verify that your changes are in the correct locations.

@github-actions

Copy link
Copy Markdown

Super-linter summary

LanguageValidation result
CHECKOVPass ✅
GITHUB_ACTIONSPass ✅
GITLEAKSPass ✅
GIT_MERGE_CONFLICT_MARKERSPass ✅
MARKDOWNPass ✅
NATURAL_LANGUAGEPass ✅
POWERSHELLPass ✅
PRE_COMMITPass ✅
SPELL_CODESPELLPass ✅
TRIVYPass ✅
YAMLPass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

CopilotAI review requested due to automatic review settings July 7, 2026 15:36
@github-actions

Copy link
Copy Markdown

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

PatternDescription
^src/Matches files where path matches this pattern
^README\.md$Matches files where path matches this pattern

Build, test, and publish stages will be skipped for this PR.

If you believe this is incorrect, please verify that your changes are in the correct locations.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment threadtests/PSCustomObject.Tests.ps1 Outdated
@github-actions

Copy link
Copy Markdown

Super-linter summary

LanguageValidation result
CHECKOVPass ✅
GITHUB_ACTIONSPass ✅
GITLEAKSPass ✅
GIT_MERGE_CONFLICT_MARKERSPass ✅
MARKDOWNPass ✅
NATURAL_LANGUAGEPass ✅
POWERSHELLPass ✅
PRE_COMMITPass ✅
SPELL_CODESPELLPass ✅
TRIVYPass ✅
YAMLPass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

The GUID pins module identity (precise pinning), a stricter control than the lock-to-major risk appetite. Keep only the version range.
@MariusStorhaugMarius Storhaug (MariusStorhaug) changed the title ⚙️ [Maintenance]: Lock Pester test dependency to the 6.x major version by GUID⚙️ [Maintenance]: Lock Pester test dependency to the 6.x major versionJul 7, 2026
@github-actions

Copy link
Copy Markdown

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

PatternDescription
^src/Matches files where path matches this pattern
^README\.md$Matches files where path matches this pattern

Build, test, and publish stages will be skipped for this PR.

If you believe this is incorrect, please verify that your changes are in the correct locations.

@github-actions

Copy link
Copy Markdown

Super-linter summary

LanguageValidation result
CHECKOVPass ✅
GITHUB_ACTIONSPass ✅
GITLEAKSPass ✅
GIT_MERGE_CONFLICT_MARKERSPass ✅
MARKDOWNPass ✅
NATURAL_LANGUAGEPass ✅
POWERSHELLPass ✅
PRE_COMMITPass ✅
SPELL_CODESPELLPass ✅
TRIVYPass ✅
YAMLPass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@MariusStorhaug