Skip to content

Commit 91ae3e5

Browse files
tablackburnclaude
andauthored
chore: Pin Pester 5.8.0 and update PSScriptAnalyzer to 1.25.0 (#129)
## Summary - Pin Pester to 5.8.0 (current stable, published 2026-06-30) in `requirements.psd1`. It previously floated via `MinimumVersion = '5.6.1'`, so CI installed whatever the newest release was at bootstrap time — this makes CI deterministic. - Update PSScriptAnalyzer from 1.24.0 to 1.25.0, the latest stable release (2026-03-20). - Stop duplicating dependency versions in `instructions/repository-specific.instructions.md`: the table now describes each module's purpose and points to `requirements.psd1` as the source of truth, so this class of PR never has to touch the instructions again. Hardcoded module/task-runner version numbers are dropped for the same reason. - Add `tests/out/` to `.gitignore` — the Pester task writes `tests/out/testResults.xml` on every run (for the CI artifact upload), leaving untracked clutter after local test runs. The consumer-facing minimum in `PowerShellBuild.psd1` (`Pester >= 5.6.1` in `RequiredModules`) is intentionally unchanged — raising it would force the new version on consumers, which is a separate decision. ## Test Plan - [x] Full local run of `./build.ps1 -Task Test` with the exact pinned versions (psake 4.9.0, PSScriptAnalyzer 1.25.0, Pester 5.8.0): 314 passed, 0 failed, Analyze clean (warnings only). - [x] `git check-ignore tests/out/testResults.xml` confirms the new ignore rule matches. - [x] CI matrix green on all platforms. ## Breaking Changes None (build-time dependencies and repo docs only). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01JHgRWPi4D2aun7CEtwLz7T --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 3c5277d commit 91ae3e5

3 files changed

Lines changed: 18 additions & 16 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Output/
2+
tests/out/

instructions/repository-specific.instructions.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ file only adds repo-specific concepts.
1414
**PowerShellBuild** is a PowerShell module that provides standardized build, test, and publish
1515
tasks for other PowerShell module projects. It supports two task-runner frameworks:
1616

17-
- **psake** (4.9.0+)
18-
- **Invoke-Build** (5.8.1+)
17+
- **psake**
18+
- **Invoke-Build**
1919

20-
- Current version: **0.8.1** (see `PowerShellBuild/PowerShellBuild.psd1`)
20+
- Current version: see `ModuleVersion` in `PowerShellBuild/PowerShellBuild.psd1`
2121
- `PowerShellVersion` in the manifest is currently `'3.0'` — almost certainly wrong; under
2222
review in the v1.0.0 roadmap (psake/PowerShellBuild#120)
2323
- Cross-platform: Windows, Linux, macOS (CI matrix in `.github/workflows/test.yml`)
@@ -220,16 +220,17 @@ no-ops on non-Windows.
220220

221221
## Dependencies
222222

223-
Defined in `requirements.psd1`, installed via **PSDepend** when `./build.ps1 -Bootstrap` runs:
224-
225-
| Module | Version |
226-
| ---------------- | -------- |
227-
| BuildHelpers | 2.0.16 |
228-
| Pester | ≥ 5.6.1 |
229-
| psake | 4.9.0 |
230-
| PSScriptAnalyzer | 1.24.0 |
231-
| InvokeBuild | 5.8.1 |
232-
| platyPS | 0.14.2 |
223+
Defined in `requirements.psd1` — the source of truth for build-dependency names and pinned
224+
versions — and installed via **PSDepend** when `./build.ps1 -Bootstrap` runs:
225+
226+
| Module | Purpose |
227+
| ---------------- | ---------------------------------------------------------- |
228+
| BuildHelpers | Populates the `BH*` build environment variables |
229+
| Pester | Test framework |
230+
| psake | Task runner for this repo's own build |
231+
| PSScriptAnalyzer | Static analysis of the built module |
232+
| InvokeBuild | Alternate task runner (consumer-facing `IB.tasks.ps1`) |
233+
| platyPS | Help and documentation generation |
233234

234235
## Testing
235236

requirements.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
}
55
BuildHelpers = '2.0.16'
66
Pester = @{
7-
MinimumVersion = '5.6.1'
8-
Parameters = @{
7+
Version = '5.8.0'
8+
Parameters = @{
99
SkipPublisherCheck = $true
1010
}
1111
}
1212
psake = '4.9.0'
13-
PSScriptAnalyzer = '1.24.0'
13+
PSScriptAnalyzer = '1.25.0'
1414
InvokeBuild = '5.8.1'
1515
platyPS = '0.14.2'
1616
}

0 commit comments

Comments
 (0)