basic/basic.rs
1//! Generate a small but complete GitHub Actions workflow.
2//!
3//! ```text
4//! cargo run --example basic
5//! ```
6//!
7//! Output is what most pure-Rust crates need: `test` (single OS) plus
8//! the standard quality gates (`clippy`, `fmt`, `docs`, `msrv`).
9
10use dev_ci::{Generator, Target};
11
12fn main() {
13 let yaml = Generator::new()
14 .target(Target::GitHubActions)
15 .with_clippy()
16 .with_fmt()
17 .with_docs()
18 .with_msrv("1.85")
19 .generate();
20
21 println!("{yaml}");
22}