Skip to content

Commit 06fd9ad

Browse files
🩹 [Patch]: Bump Invoke-ScriptAnalyzer to v5.0.0 and Test-PSModule to v3.0.14 (#380)
Brings Process-PSModule's lint/test action dependencies to their latest releases: `PSModule/Invoke-ScriptAnalyzer` v4.1.3 → v5.0.0 and `PSModule/Test-PSModule` v3.0.13 → v3.0.14. Both preserve the reusable workflow's `Settings.Version`/`Settings.Prerelease` contract for consumers. ## Changed: Invoke-ScriptAnalyzer upgraded to v5.0.0 Invoke-ScriptAnalyzer v5.0.0 is a major release that repurposed its `Version`/`Prerelease` inputs to select the **PSScriptAnalyzer** module version and moved the GitHub bootstrap-module controls to `GitHubVersion`/`GitHubPrerelease`. The `Lint-SourceCode` and `Lint-Module` steps pass `Settings.Version`/`Settings.Prerelease`, which in this ecosystem select the **GitHub module** (the same values feed the Invoke-Pester and GitHub-Script steps). They are now wired to Invoke-ScriptAnalyzer's `GitHubVersion`/`GitHubPrerelease`, so those settings keep controlling the GitHub module exactly as before. No change to the `Settings` contract. With v5, the action also installs PSScriptAnalyzer itself (latest, since its `Version` is left unset) instead of relying on the runner's preinstalled copy — so consumer linting now runs against the latest PSScriptAnalyzer. ## Changed: Test-PSModule upgraded to v3.0.14 Patch release; Test-PSModule v3.0.14 (which internally bumped Invoke-Pester to v5.1.0) preserves its own `Version`/`Prerelease` (GitHub module) contract, so the `Test-SourceCode` and `Test-Module` steps need only a SHA update — no input remap. ## Technical Details - `Lint-SourceCode.yml`, `Test-Module.yml`: `Invoke-ScriptAnalyzer` `6aeb1bc` (v4.1.3) → `4d633e4` (v5.0.0); remapped `Version` → `GitHubVersion`, `Prerelease` → `GitHubPrerelease`. - `Test-Module.yml`, `Test-SourceCode.yml`: `Test-PSModule` `25c9cd8` (v3.0.13) → `902c5e5` (v3.0.14). - Pester and PSScriptAnalyzer versions left at the v5 defaults (latest); not wired to any `Settings` key. - Scope: the Invoke-Pester step (`Test-ModuleLocal.yml`, still v4.2.6) is intentionally untouched. - Label note: the `Settings` contract is preserved (hence `Patch`), but consumer linting now runs against the latest PSScriptAnalyzer — bump to `Minor` if you'd rather signal that behavior change. Release notes: [Invoke-ScriptAnalyzer v5.0.0](https://github.com/PSModule/Invoke-ScriptAnalyzer/releases/tag/v5.0.0)
1 parent d4020f3 commit 06fd9ad

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎.github/workflows/Lint-SourceCode.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
persist-credentials: false
2727

2828
- name: Lint-SourceCode
29-
uses: PSModule/Invoke-ScriptAnalyzer@6aeb1bc093b89f9b15c2ac3e5f9ef9e0879dc755 # v4.1.3
29+
uses: PSModule/Invoke-ScriptAnalyzer@4d633e4df1f1fa575949a328839d33c3a0838765 # v5.0.0
3030
with:
3131
Debug: ${{ fromJson(inputs.Settings).Debug }}
32-
Prerelease: ${{ fromJson(inputs.Settings).Prerelease }}
32+
GitHubPrerelease: ${{ fromJson(inputs.Settings).Prerelease }}
33+
GitHubVersion: ${{ fromJson(inputs.Settings).Version }}
3334
Verbose: ${{ fromJson(inputs.Settings).Verbose }}
34-
Version: ${{ fromJson(inputs.Settings).Version }}
3535
Path: src
3636
WorkingDirectory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
3737
TestResult_Enabled: true

‎.github/workflows/Test-Module.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
path: ${{ fromJson(inputs.Settings).WorkingDirectory }}/outputs/module
3333

3434
- name: Test-Module
35-
uses: PSModule/Test-PSModule@25c9cd89954d558360e5917efbd4dea4ca894144 # v3.0.13
35+
uses: PSModule/Test-PSModule@902c5e50774e6606ccf41c125a1fe89f783c1149 # v3.0.14
3636
with:
3737
Name: ${{ fromJson(inputs.Settings).Name }}
3838
Debug: ${{ fromJson(inputs.Settings).Debug }}
@@ -62,13 +62,13 @@ jobs:
6262
path: ${{ fromJson(inputs.Settings).WorkingDirectory }}/outputs/module
6363

6464
- name: Lint-Module
65-
uses: PSModule/Invoke-ScriptAnalyzer@6aeb1bc093b89f9b15c2ac3e5f9ef9e0879dc755 # v4.1.3
65+
uses: PSModule/Invoke-ScriptAnalyzer@4d633e4df1f1fa575949a328839d33c3a0838765 # v5.0.0
6666
with:
6767
Path: outputs/module
6868
Debug: ${{ fromJson(inputs.Settings).Debug }}
69-
Prerelease: ${{ fromJson(inputs.Settings).Prerelease }}
69+
GitHubPrerelease: ${{ fromJson(inputs.Settings).Prerelease }}
70+
GitHubVersion: ${{ fromJson(inputs.Settings).Version }}
7071
Verbose: ${{ fromJson(inputs.Settings).Verbose }}
71-
Version: ${{ fromJson(inputs.Settings).Version }}
7272
WorkingDirectory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
7373
TestResult_Enabled: true
7474
TestResult_TestSuiteName: PSModuleLint-Module-${{ runner.os }}

‎.github/workflows/Test-SourceCode.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fetch-depth: 0
2828

2929
- name: Test-SourceCode
30-
uses: PSModule/Test-PSModule@25c9cd89954d558360e5917efbd4dea4ca894144 # v3.0.13
30+
uses: PSModule/Test-PSModule@902c5e50774e6606ccf41c125a1fe89f783c1149 # v3.0.14
3131
with:
3232
Debug: ${{ fromJson(inputs.Settings).Debug }}
3333
Prerelease: ${{ fromJson(inputs.Settings).Prerelease }}

0 commit comments

Comments
 (0)