Skip to content

test: prove the powershell-module templates work on Linux pwsh - #6

Merged
PBNZ merged 1 commit into
mainfrom
test/linux-pwsh-smoke
Jul 6, 2026
Merged

test: prove the powershell-module templates work on Linux pwsh#6
PBNZ merged 1 commit into
mainfrom
test/linux-pwsh-smoke

Conversation

@PBNZ

@PBNZ PBNZ commented Jul 6, 2026

Copy link
Copy Markdown
Owner

What

Answers "does any of this work on Linux?" with CI evidence instead of "should":

  • scripts/smoke_test_powershell_module.ps1 — stamps the powershell-module core-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.yml gains a smoke-powershell-module job running that script with pwsh on ubuntu-latest, so the templates are exercised on Linux for every push/PR.
  • The {{Guid}} instruction in /new-repo no longer assumes PowerShell on the scaffolding host (uuidgen / pwsh / python listed as equivalents).
  • ADR-0005 records the cross-platform posture (pwsh 7 / Core only; Linux smoke test; skills must not assume a host shell).

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 with ubuntu-latest CI. 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

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
@PBNZ
PBNZ merged commit 10f223d into main Jul 6, 2026
2 checks passed
@PBNZ
PBNZ deleted the test/linux-pwsh-smoke branch July 6, 2026 12:32
Sign up for free to 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.

1 participant