fix: 添加多个调试 echo 确认执行流程
Test CI / 快速测试 (push) Failing after 1s

This commit is contained in:
2026-03-01 23:58:20 +08:00
parent 7d43eaabdc
commit 5a8cf2cbec
+5 -15
View File
@@ -22,24 +22,14 @@ jobs:
- name: PHP 语法检查 - name: PHP 语法检查
run: | run: |
echo "📝 PHP 语法检查..." echo "📝 开始 PHP 语法检查..."
# 检查每个 PHP 文件 echo "🔍 正在检查所有 PHP 文件..."
for file in $(find . -name "*.php" -not -path "./vendor/*"); do for file in $(find . -name "*.php" -not -path "./vendor/*"); do
php -l "$file" > /tmp/lint_$file.txt 2>&1 || true echo "检查: $file"
php -l "$file" || true
done done
echo "✅ 文件检查完成"
# 合并所有输出
cat /tmp/lint_*.txt > /tmp/all_lint.txt
# 检查是否有错误
if grep -q "Parse error\|Fatal error\|Syntax error" /tmp/all_lint.txt; then
echo "❌ PHP 语法错误详情:"
base64 /tmp/all_lint.txt
exit 1
else
echo "✅ 所有 PHP 文件语法正确"
fi
# 单元测试 # 单元测试
test: test: