File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818jobs :
1919
20+ # Rust quality gate: fmt, clippy, tests. Runs on every PR and on push to
21+ # main, in parallel to the release-plz/Docker pipeline (does not block it).
22+ quality :
23+ name : Rust quality (fmt, clippy, test)
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Checkout repository
27+ uses : actions/checkout@v6
28+ - name : Install Rust toolchain
29+ uses : dtolnay/rust-toolchain@stable
30+ with :
31+ components : rustfmt, clippy
32+ - name : Cache cargo registry and target
33+ uses : Swatinem/rust-cache@v2
34+ - name : cargo fmt --check
35+ run : cargo fmt --all -- --check
36+ - name : cargo clippy
37+ run : cargo clippy --all-targets -- -D warnings
38+ - name : cargo test
39+ run : cargo test --all-targets
40+
2041 # Release unpublished packages.
2142 release-plz-release :
2243 name : Release-plz release
You can’t perform that action at this time.
0 commit comments