fix: Resolve slow UI/UX performance on Rocket.Chat Desktop App (#3117) #39
Workflow file for this run
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: PowerShell Lint | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| paths: | |
| - '**.ps1' | |
| - '**.psm1' | |
| - '**.psd1' | |
| - '.github/workflows/powershell-lint.yml' | |
| push: | |
| branches: | |
| - master | |
| - dev | |
| paths: | |
| - '**.ps1' | |
| - '**.psm1' | |
| - '**.psd1' | |
| - '.github/workflows/powershell-lint.yml' | |
| jobs: | |
| lint: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install PSScriptAnalyzer | |
| shell: pwsh | |
| run: | | |
| Set-PSRepository PSGallery -InstallationPolicy Trusted | |
| Install-Module -Name PSScriptAnalyzer -Force -Scope CurrentUser | |
| - name: Run PSScriptAnalyzer | |
| shell: pwsh | |
| run: | | |
| # Exclude Write-Host warnings as they're useful for CI output | |
| $results = Invoke-ScriptAnalyzer -Path . -Recurse -ReportSummary -ExcludeRule PSAvoidUsingWriteHost | |
| if ($results) { | |
| $results | Format-Table -AutoSize | |
| Write-Error "PSScriptAnalyzer found issues" | |
| exit 1 | |
| } else { | |
| Write-Host "✅ No PowerShell issues found" | |
| } |