chore: add CI and prepare v0.2.0 release#29
Merged
Conversation
- Add GitHub Actions CI (.github/workflows/ci.yml): parse every script under Windows PowerShell 5.1, scan for PS7-only syntax, and run PSScriptAnalyzer against a checked-in PSScriptAnalyzerSettings.psd1. Build fails on parse errors or Error-severity findings; Warnings are surfaced as annotations. The analyzer settings exclude rules that do not fit an interactive Reader-only CLI toolkit (Write-Host console UX, positional args to external az calls, established plural/verb command names). - Remove dead code flagged by the analyzer: unused \ in Get-RegionFootprint.ps1 and \ in Get-SkuCatalogue.ps1. - Add a CI status badge to the README. - CHANGELOG: cut [0.2.0] - 2026-07-02 from [Unreleased], add a fresh [Unreleased] scaffold and Keep-a-Changelog compare links. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…hell 5.1-safe The new CI parse gate (Windows PowerShell 5.1) surfaced two scripts that did not actually run under the toolkit's stated 5.1 compatibility target: - Deploy-QuotaGroups.ps1 used PowerShell 7-only ternary (? :) and null-coalescing (??) operators in seven places, so it failed to parse under 5.1. Rewrote all as 5.1-safe if/else expressions. - New-EnablementRequest.ps1 contained a lone non-ASCII em-dash with no BOM, which Windows PowerShell 5.1 decoded as ANSI and mis-tokenised. Replaced with an ASCII hyphen so the file stays pure ASCII like every other script in the toolkit. Verified: all 28 scripts now parse cleanly under Windows PowerShell 5.1.26100, repo is pure ASCII, 0 PSScriptAnalyzer error-severity findings. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Adds the first CI workflow and prepares the v0.2.0 cut.
CI (.github/workflows/ci.yml)
Cleanup
Release prep
Merging once CI is green (this PR validates the workflow end-to-end).