mirror of
https://github.com/bahdotsh/wrkflw.git
synced 2025-12-16 11:47:45 +01:00
wrkflw@0.7.0 wrkflw-evaluator@0.7.0 wrkflw-executor@0.7.0 wrkflw-github@0.7.0 wrkflw-gitlab@0.7.0 wrkflw-logging@0.7.0 wrkflw-matrix@0.7.0 wrkflw-models@0.7.0 wrkflw-parser@0.7.0 wrkflw-runtime@0.7.0 wrkflw-ui@0.7.0 wrkflw-utils@0.7.0 wrkflw-validators@0.7.0 Generated by cargo-workspaces
wrkflw-evaluator
Small, focused helper for statically evaluating GitHub Actions workflow files.
- Purpose: Fast structural checks (e.g.,
name,on,jobs) before deeper validation/execution - Used by:
wrkflwCLI and TUI during validation flows
Example
use std::path::Path;
let result = wrkflw_evaluator::evaluate_workflow_file(
Path::new(".github/workflows/ci.yml"),
/* verbose */ true,
).expect("evaluation failed");
if result.is_valid {
println!("Workflow looks structurally sound");
} else {
for issue in result.issues {
println!("- {}", issue);
}
}
Notes
- This crate focuses on structural checks; deeper rules live in
wrkflw-validators. - Most consumers should prefer the top-level
wrkflwCLI for end-to-end UX.