Summary
Add a GitHub Actions workflow that runs on every push and pull request to main, ensuring scripts are lint-clean and all Pester tests pass before changes are merged.
Proposed workflow
.github/
workflows/
ci.yml
Triggers
push to main
pull_request targeting main
Jobs
| Job |
Steps |
| lint |
Run PSScriptAnalyzer against scripts/ — fail on any error-severity finding |
| test |
Install Pester, invoke Invoke-Pester from repo root — fail if any test fails or the suite errors |
Runner
Must use windows-latest — WinRT APIs required by Rename-Photos.ps1 are unavailable on Linux/macOS runners (refs #4).
Acceptance criteria
Dependencies
Summary
Add a GitHub Actions workflow that runs on every push and pull request to
main, ensuring scripts are lint-clean and all Pester tests pass before changes are merged.Proposed workflow
Triggers
pushtomainpull_requesttargetingmainJobs
scripts/— fail on any error-severity findingInvoke-Pesterfrom repo root — fail if any test fails or the suite errorsRunner
Must use
windows-latest— WinRT APIs required byRename-Photos.ps1are unavailable on Linux/macOS runners (refs #4).Acceptance criteria
.github/workflows/ci.yml.main.Dependencies