第一轮 CI 暴露:该步骤自身写法错,不是脚本错。shell: cmd + powershell -Command "..." 带多行/内层引号,经 cmd 转义后变成: Missing closing '}' / '$errs' is not recognized / -and was unexpected 全是指 step 自身,与被测 .ps1 无关。 修正:直接用 shell: powershell(runner 上的 powershell 就是 5.1,正是要测的目标)+ run: | 块, 与旁边已通过的 install 冒烟步骤同一形态。