Skip to content

Add PACE Controller v0.2.0, documentation and automated releases #1

Add PACE Controller v0.2.0, documentation and automated releases

Add PACE Controller v0.2.0, documentation and automated releases #1

Workflow file for this run

name: Validate source
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
validate:
runs-on: windows-2022
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Parse PowerShell source
shell: pwsh
run: |
$tokens = $null
$errors = $null
[System.Management.Automation.Language.Parser]::ParseFile(
(Resolve-Path './PACE_Controller.ps1'),
[ref]$tokens,
[ref]$errors
) | Out-Null
if ($errors.Count -gt 0) {
$errors | Format-List | Out-String | Write-Error
throw "PowerShell parser found $($errors.Count) error(s)."
}
Write-Host 'PowerShell syntax OK.'
- name: Run repository checks
run: python tests/test_project.py
- name: Validate JSON example
shell: pwsh
run: Get-Content examples/routine_esempio.json -Raw | ConvertFrom-Json | Out-Null