fix: Exclude test directories from pre-deployment validation

- Added exclusion for */tests/* and */playwright/* directories
- Validation should only check production plugin files

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
bengizmo 2025-07-24 15:00:44 -03:00
parent b44fa97317
commit 50d28a1640

View file

@ -66,7 +66,7 @@ while IFS= read -r -d '' file; do
php_errors=true
overall_success=false
fi
done < <(find "$PROJECT_DIR" -name "*.php" -not -path "*/vendor/*" -not -path "*/node_modules/*" -not -path "*/archive/*" -not -path "*/wordpress-dev/*" -print0)
done < <(find "$PROJECT_DIR" -name "*.php" -not -path "*/vendor/*" -not -path "*/node_modules/*" -not -path "*/archive/*" -not -path "*/wordpress-dev/*" -not -path "*/tests/*" -not -path "*/playwright/*" -print0)
if [ "$php_errors" = false ]; then
echo -e "${GREEN}✅ All PHP files have valid syntax${NC}"