test: prove the powershell-module templates work on Linux pwsh - #6
Merged
Conversation
The plugin ships no runnable scripts of its own (skills are prose using
git/gh; validation is Python), and the powershell-module templates already
target pwsh 7 / PSEdition Core with ubuntu-latest CI - but nothing in this
repo ever executed the stamped templates on any OS.
- Add scripts/smoke_test_powershell_module.ps1: stamps the core-tier
templates with dummy values, then verifies Test-ModuleManifest,
Import-Module, PSScriptAnalyzer (Error), and the Pester scaffold.
- Run it in validate.yml on ubuntu-latest with shell: pwsh, so the
templates are exercised on Linux for every push/PR.
- Make the {{Guid}} placeholder instruction shell-agnostic (uuidgen /
pwsh / python) instead of assuming PowerShell on the scaffolding host.
- Record the cross-platform posture as ADR-0005.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01156rgoYreVp88JDZFtYL6X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Answers "does any of this work on Linux?" with CI evidence instead of "should":
scripts/smoke_test_powershell_module.ps1— stamps thepowershell-modulecore-tier templates with dummy values into a temp dir, then verifies the result is a working module:Test-ModuleManifest,Import-Module, PSScriptAnalyzer (Error severity), and the scaffolded Pester test.validate.ymlgains asmoke-powershell-modulejob running that script with pwsh onubuntu-latest, so the templates are exercised on Linux for every push/PR.{{Guid}}instruction in/new-repono longer assumes PowerShell on the scaffolding host (uuidgen/ pwsh / python listed as equivalents).Why
The plugin itself ships no runnable scripts — skills are prose using
git/gh, validation is Python — and the powershell-module templates already target pwsh 7 / Core withubuntu-latestCI. But nothing in this repo ever executed a stamped template on any OS; a Linux-breaking template regression would only surface in the first repo someone scaffolds.Verified
Script passes locally on Windows pwsh 7.6.3 (stamp -> manifest -> import -> Pester 1/1 green); the PR''s own CI run is the Linux proof.
🤖 Generated with Claude Code
https://claude.ai/code/session_01156rgoYreVp88JDZFtYL6X