Local Testing
Run local checks from the repository root:
.\scripts\Test-Local.ps1 -ConfigFile .\config.local.yamlThe script:
- Parses tracked PowerShell script and module files.
- Validates
AzureSqlVmToolkit.psd1. - Verifies
VERSIONmatches the module manifest. - Parses
schemas/config.schema.json. - Runs
vm_creation_with_bastion.ps1 -Plan. - Runs Pester 5 tests when installed.
- Runs PSScriptAnalyzer when installed.
Install optional local test tooling:
Install-Module -Name powershell-yaml -RequiredVersion 0.4.12 -Scope CurrentUser -ForceInstall-Module -Name Pester -RequiredVersion 5.7.1 -Scope CurrentUser -Force -SkipPublisherCheckInstall-Module -Name PSScriptAnalyzer -RequiredVersion 1.25.0 -Scope CurrentUser -ForceGitHub Actions runs the same local check for toolkit script/config/test changes, and also runs the docs build plus npm audit.