Fix: [for cherry-picking] Reverted the generated TODO documentation ent #69
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: verify | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| powershell: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Parse-check PowerShell scripts | |
| shell: pwsh | |
| run: | | |
| $failed = $false | |
| Get-ChildItem -Recurse -Filter *.ps1 | ForEach-Object { | |
| $parseErrors = $null | |
| [System.Management.Automation.Language.Parser]::ParseFile($_.FullName, [ref]$null, [ref]$parseErrors) | Out-Null | |
| if ($parseErrors.Count) { | |
| Write-Error "Parse errors in $($_.FullName): $($parseErrors -join '; ')" | |
| $failed = $true | |
| } | |
| } | |
| if ($failed) { exit 1 } | |
| - name: Run Pester tests | |
| shell: pwsh | |
| run: | | |
| Import-Module Pester -MinimumVersion 5.0 | |
| $result = Invoke-Pester -Path tools -Output Detailed -PassThru | |
| if ($result.FailedCount -gt 0) { exit 1 } |