feat: add reusable CI and release workflows#5
Merged
Merged
feat: add reusable CI and release workflows#5
Conversation
powershell-ci.yml: - Matrix: windows/ubuntu/macos x PS5.1(Win only)/PS7.x - NuGet bootstrap step for PS 5.1 - Fixed psake tasks: Init → Test → Analyze - Uploads test result artifacts per matrix leg powershell-release.yml: - Inputs: module-name (required), create-github-release (default true) - Secret: PSGALLERY_API_KEY (required, scoped per-repo) - Full CI gate (Init → Test → Analyze) before Build → Publish - Creates GitHub Release with auto-generated notes via gh CLI
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.
Stack position: 5 of 7
Two reusable
workflow_callworkflows. These are the shared CI/CD infrastructure that Plaster and PSDepend will adopt immediately after this PR merges.What's in this PR
powershell-ci.yml(reusable):5.0–5.99)Init→Test→AnalyzetestResults.xml)powershell-release.yml(reusable):module-name(required string),create-github-release(bool, defaulttrue)PSGALLERY_API_KEYgh release create --generate-noteswindows-latestonly (publish from Windows for maximum compatibility)Consuming repo usage:
Council questions
5.0–5.99): intentional — keeps us on Pester 5.x and excludes a hypothetical Pester 6 that might be breaking. Agree?Publish-Moduleis most reliable from Windows. Any objection?--generate-notesfor GitHub Releases: this pulls from PR titles since last release. Only useful once PRs are the standard workflow. For the first release, maintainers should write notes manually. Should we document this caveat?Inittask in CI: this assumes every repo has anInitpsake task. If a repo doesn't define it, CI will fail. Is the org wiki the right place to document required task names, or should we add aREQUIRED_TASKS.mdhere?Base:
pr/04-templates— merge PRs 1–4 first.