mirror of
https://github.com/ivuorinen/actions.git
synced 2026-02-04 19:43:12 +00:00
chore: add tests, update docs and actions (#299)
* docs: update documentation * feat: validate-inputs has it's own pyproject * security: mask DOCKERHUB_PASSWORD * chore: add tokens, checkout, recrete docs, integration tests * fix: add `statuses: write` permission to pr-lint
This commit is contained in:
@@ -200,10 +200,10 @@ class CustomValidator(BaseValidator):
|
||||
return False
|
||||
return True
|
||||
|
||||
def get_validation_rules(self) -> dict:
|
||||
"""Get validation rules."""
|
||||
rules_path = Path(__file__).parent / "rules.yml"
|
||||
return self.load_rules(rules_path)
|
||||
def get_validation_rules(self) -> dict:
|
||||
"""Get validation rules."""
|
||||
rules_path = Path(__file__).parent / "rules.yml"
|
||||
return self.load_rules(rules_path)
|
||||
```
|
||||
|
||||
1. **Test your validator** (optional but recommended):
|
||||
|
||||
@@ -5,7 +5,7 @@ A comprehensive, modular validation system for GitHub Actions inputs with automa
|
||||
## Features
|
||||
|
||||
- 🔍 **Automatic Validation** - Convention-based input detection
|
||||
- 🧩 **Modular Architecture** - 11+ specialized validators
|
||||
- 🧩 **Modular Architecture** - 9 specialized validators
|
||||
- 🛡️ **Security First** - Injection and traversal protection
|
||||
- 🎯 **Custom Validators** - Action-specific validation logic
|
||||
- 🧪 **Test Generation** - Automatic test scaffolding
|
||||
@@ -332,8 +332,8 @@ class CustomValidator(BaseValidator):
|
||||
|
||||
## Quality Metrics
|
||||
|
||||
- **Test Coverage**: 100% (303 tests)
|
||||
- **Validators**: 11 core + unlimited custom
|
||||
- **Test Coverage**: 100% (769 tests)
|
||||
- **Validators**: 9 specialized + unlimited custom
|
||||
- **Performance**: < 10ms typical validation time
|
||||
- **Zero Dependencies**: Uses only Python stdlib + PyYAML
|
||||
- **Production Ready**: Zero defects policy
|
||||
|
||||
Reference in New Issue
Block a user