3 unstable releases
| 0.7.3 | Aug 28, 2025 |
|---|---|
| 0.7.0 | Aug 13, 2025 |
| 0.6.0 | Aug 9, 2025 |
#101 in #local
37 downloads per month
Used in 3 crates
(2 directly)
51KB
958 lines
wrkflw-validators
Validation utilities for workflows and steps.
- Validates GitHub Actions sections: jobs, steps, actions references, triggers
- GitLab pipeline validation helpers
- Matrix-specific validation
Example
use serde_yaml::Value;
use wrkflw_models::ValidationResult;
use wrkflw_validators::{validate_jobs, validate_triggers};
let yaml: Value = serde_yaml::from_str(r#"name: demo
on: [workflow_dispatch]
jobs: { build: { runs-on: ubuntu-latest, steps: [] } }
"#).unwrap();
let mut res = ValidationResult::new();
if let Some(on) = yaml.get("on") {
validate_triggers(on, &mut res);
}
if let Some(jobs) = yaml.get("jobs") {
validate_jobs(jobs, &mut res);
}
assert!(res.is_valid);
Dependencies
~2–3MB
~66K SLoC