ci(validation): speed up validation, only print logs

This commit is contained in:
Sam Chau
2025-08-27 05:17:39 +09:30
parent 1749e79950
commit 492dbe8530
2 changed files with 91 additions and 19 deletions

View File

@@ -26,26 +26,10 @@ jobs:
sudo apt-get update
sudo apt-get install -y powershell
- name: Validate All Patterns
run: |
failed=0
for file in regex_patterns/*.yml regex_patterns/*.yaml; do
if [ -f "$file" ]; then
echo "Validating: $file"
if ! pwsh scripts/validatePattern.ps1 -YamlFilePath "$file"; then
failed=$((failed + 1))
fi
fi
done
- name: validate
run: pwsh scripts/validateAllPatterns.ps1
if [ $failed -gt 0 ]; then
echo "❌ $failed pattern(s) failed validation"
exit 1
else
echo "✅ All patterns validated successfully"
fi
- name: Run Unit Tests
- name: test
run: |
echo "TODO: Implement unit tests for all patterns"
# TODO: Add test runner command here