Update CLAUDE.md with Virtualization and Tenancy completion #2
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
| name: Lint | |
| on: | |
| push: | |
| branches: [dev, main, master] | |
| paths: | |
| - 'Functions/**' | |
| - '*.ps1' | |
| - '*.psm1' | |
| pull_request: | |
| branches: [dev, main, master] | |
| paths: | |
| - 'Functions/**' | |
| - '*.ps1' | |
| - '*.psm1' | |
| jobs: | |
| lint: | |
| name: PSScriptAnalyzer | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install PSScriptAnalyzer | |
| shell: pwsh | |
| run: | | |
| Set-PSRepository PSGallery -InstallationPolicy Trusted | |
| Install-Module PSScriptAnalyzer -Force -Scope CurrentUser | |
| - name: Run PSScriptAnalyzer | |
| shell: pwsh | |
| run: | | |
| $settingsPath = '.vscode/PSScriptAnalyzerSettings.psd1' | |
| $settings = if (Test-Path $settingsPath) { $settingsPath } else { $null } | |
| Write-Host "Analyzing Functions directory..." -ForegroundColor Cyan | |
| $splat = @{ | |
| Path = './Functions' | |
| Recurse = $true | |
| Severity = 'Error', 'Warning' | |
| } | |
| if ($settings) { | |
| $splat['Settings'] = $settings | |
| } | |
| $results = Invoke-ScriptAnalyzer @splat | |
| if ($results) { | |
| Write-Host "`n❌ PSScriptAnalyzer found $($results.Count) issue(s):`n" -ForegroundColor Red | |
| $results | Format-Table -Property Severity, RuleName, ScriptName, Line, Message -AutoSize -Wrap | |
| exit 1 | |
| } else { | |
| Write-Host "✅ No issues found!" -ForegroundColor Green | |
| } |