🐛 fix(ci): update tests for flag-only scripts
This commit is contained in:
@@ -202,8 +202,8 @@ jobs:
|
||||
tar -C "$REPO_DIR" --exclude .git -cf - . | tar -C docs/standards/playbook -xf -
|
||||
|
||||
# 运行同步脚本
|
||||
echo "▶ 运行 sync_standards.sh tsl"
|
||||
sh docs/standards/playbook/scripts/sync_standards.sh tsl
|
||||
echo "▶ 运行 sync_standards.sh -langs tsl"
|
||||
sh docs/standards/playbook/scripts/sync_standards.sh -langs tsl
|
||||
|
||||
# 验证结果
|
||||
if [ -d ".agents/tsl" ] && [ -f ".agents/tsl/index.md" ]; then
|
||||
@@ -237,8 +237,8 @@ jobs:
|
||||
mkdir -p docs/standards/playbook
|
||||
tar -C "$REPO_DIR" --exclude .git -cf - . | tar -C docs/standards/playbook -xf -
|
||||
|
||||
echo "▶ 运行 sync_standards.sh cpp"
|
||||
sh docs/standards/playbook/scripts/sync_standards.sh cpp
|
||||
echo "▶ 运行 sync_standards.sh -langs cpp"
|
||||
sh docs/standards/playbook/scripts/sync_standards.sh -langs cpp
|
||||
|
||||
if [ -d ".agents/cpp" ] && [ -f ".agents/cpp/index.md" ]; then
|
||||
echo "✅ C++ 规则集同步成功"
|
||||
@@ -261,8 +261,8 @@ jobs:
|
||||
mkdir -p docs/standards/playbook
|
||||
tar -C "$REPO_DIR" --exclude .git -cf - . | tar -C docs/standards/playbook -xf -
|
||||
|
||||
echo "▶ 运行 sync_standards.sh tsl cpp"
|
||||
sh docs/standards/playbook/scripts/sync_standards.sh tsl cpp
|
||||
echo "▶ 运行 sync_standards.sh -langs tsl,cpp"
|
||||
sh docs/standards/playbook/scripts/sync_standards.sh -langs tsl,cpp
|
||||
|
||||
if [ -d ".agents/tsl" ] && [ -d ".agents/cpp" ] && [ -f ".agents/index.md" ]; then
|
||||
echo "✅ 多语言规则集同步成功"
|
||||
@@ -285,7 +285,7 @@ jobs:
|
||||
git config user.email "test@example.com"
|
||||
|
||||
echo "▶ 运行 vendor_playbook.sh"
|
||||
sh "$REPO_DIR/scripts/vendor_playbook.sh" . tsl
|
||||
sh "$REPO_DIR/scripts/vendor_playbook.sh" -project-root . -langs tsl
|
||||
|
||||
if [ -d "docs/standards/playbook" ] && [ -d "docs/standards/playbook/rulesets/tsl" ] && [ -d ".agents/tsl" ]; then
|
||||
echo "✅ vendor_playbook 脚本执行成功"
|
||||
|
||||
Reference in New Issue
Block a user