Skip to content

🌟 [Major]: Separate Pester and GitHub version and prerelease inputs#32

Open
dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/github_actions/PSModule/Invoke-Pester-4.2.5
Open

🌟 [Major]: Separate Pester and GitHub version and prerelease inputs#32
dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/github_actions/PSModule/Invoke-Pester-4.2.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 25, 2026

Copy link
Copy Markdown
Contributor

Bumps PSModule/Invoke-Pester from 4.2.4 to 5.1.0 and reworks the action's version inputs so callers can control the Pester module and the GitHub module independently. Versions and prereleases now trickle down to the right place: Pester settings flow to the Invoke-Pester step, and GitHub-module settings flow to both the GitHub-Script step and the Invoke-Pester init bootstrap.

New: PesterVersion and PesterPrerelease

Control the version (and prerelease opt-in) of the Pester module used to run the analyzer tests, using NuGet version-range syntax (for example [6.0.0,7.0.0)). When empty, the latest available version is installed.

Changed: Version/Prerelease are now GitHubVersion/GitHubPrerelease

The inputs that control the GitHub module version are renamed to make their scope explicit. They flow to both the GitHub-Script step and the Invoke-Pester init bootstrap.

Breaking Changes

The Version and Prerelease inputs are removed. Callers that pinned the GitHub module must switch to GitHubVersion/GitHubPrerelease. To pin Pester, use the new PesterVersion/PesterPrerelease inputs.

Before:

- uses: PSModule/Invoke-ScriptAnalyzer@v1
  with:
    Version: '[1.2.0, 2.0.0)'
    Prerelease: 'true'

After:

- uses: PSModule/Invoke-ScriptAnalyzer@v2
  with:
    GitHubVersion: '[1.2.0, 2.0.0)'
    GitHubPrerelease: 'true'
    PesterVersion: '[6.0.0,7.0.0)'

Technical Details

  • action.yml: replaced the Version/Prerelease inputs with PesterVersion, PesterPrerelease, GitHubVersion, GitHubPrerelease.
  • Invoke-Pester step bumped to v5.1.0 (SHA 4ff33199141fdf22568990b6107fe3148ae93a1c): its Version/Prerelease (Pester module) ← PesterVersion/PesterPrerelease; its GitHubVersion/GitHubPrerelease (GitHub bootstrap) ← GitHubVersion/GitHubPrerelease.
  • Get-TestPaths (GitHub-Script) step: Version/PrereleaseGitHubVersion/GitHubPrerelease.
  • Under Invoke-Pester v5, the step's Version/Prerelease control the Pester module and GitHubVersion/GitHubPrerelease control the GitHub bootstrap module — this is the reason the interface split is needed.
  • README.md: inputs table updated to document the four inputs.

@dependabot @github

dependabot Bot commented on behalf of github May 25, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: github-actions. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file Patch labels May 25, 2026
Invoke-Pester v5.0.0 repurposed the Version and Prerelease inputs to select the Pester module version and renamed the GitHub bootstrap-module controls to GitHubVersion and GitHubPrerelease. Remap the action's Version and Prerelease inputs (which select the GitHub module) to GitHubVersion and GitHubPrerelease to preserve their documented behavior.
@MariusStorhaug Marius Storhaug (MariusStorhaug) force-pushed the dependabot/github_actions/PSModule/Invoke-Pester-4.2.5 branch from 6d7ca22 to 49e6aae Compare July 9, 2026 22:59
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title Bump PSModule/Invoke-Pester from 4.2.4 to 4.2.5 Bump PSModule/Invoke-Pester from 4.2.4 to 5.1.0 Jul 9, 2026

Copilot AI 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

Updates this repository’s composite GitHub Action to use the newer PSModule/Invoke-Pester action (v5.1.0) while preserving the documented behavior of this action’s public Version and Prerelease inputs (i.e., still selecting the GitHub bootstrap module version, not the Pester module version).

Changes:

  • Bumped the pinned PSModule/Invoke-Pester action reference from v4.2.4 to v5.1.0 (by commit SHA).
  • Remapped this action’s Version/Prerelease inputs to Invoke-Pester’s GitHubVersion/GitHubPrerelease inputs to avoid the v5 breaking-change semantics shift.

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

Add PesterVersion/PesterPrerelease and rename Version/Prerelease to GitHubVersion/GitHubPrerelease so Pester and GitHub module versions can be controlled independently and trickle down to the Invoke-Pester and GitHub-Script steps.
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title Bump PSModule/Invoke-Pester from 4.2.4 to 5.1.0 🌟 [Major]: Separate Pester and GitHub version and prerelease inputs Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file Major

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants