steps: build: when: - event: push branch: next image: rust:latest pull: true commands: - rustup component add rustfmt clippy - cargo --version - cargo fmt --check - cargo clippy --fix -- -Dwarnings -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used - cargo test - cargo build