File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848 echo "SKILL.md OK"
4949
5050 test :
51- runs-on : ubuntu-latest
51+ strategy :
52+ matrix :
53+ os : [ubuntu-latest, windows-latest]
54+ runs-on : ${{ matrix.os }}
5255 steps :
5356 - uses : actions/checkout@v4
5457 - name : Run validation tests
Original file line number Diff line number Diff line change 3232# CHANGELOG.md version header
3333grep -qE ' ^## \[[0-9]+\.[0-9]+\.[0-9]+\]' " $ROOT /CHANGELOG.md" || { echo " FAIL: CHANGELOG.md no version header" ; fail=1; }
3434
35+ # Validate install.ps1 syntax (if pwsh available)
36+ if command -v pwsh & > /dev/null; then
37+ pwsh -NoProfile -Command " \$ e=@(); [System.Management.Automation.PSParser]::Tokenize((Get-Content -Raw install.ps1),[ref]\$ e)|Out-Null; if(\$ e.Count){exit 1}" 2> /dev/null || { echo " FAIL: install.ps1 syntax error" ; fail=1; }
38+ fi
39+
3540echo " === $( [ " $fail " -eq 0 ] && echo ' ALL PASSED' || echo ' SOME FAILED' ) ==="
3641exit $fail
You can’t perform that action at this time.
0 commit comments