Skip to content

Fix: [for cherry-picking] Reverted the generated TODO documentation ent #69

Fix: [for cherry-picking] Reverted the generated TODO documentation ent

Fix: [for cherry-picking] Reverted the generated TODO documentation ent #69

Workflow file for this run

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 }