# Define the sequence of steps for the CI pipeline steps: # Step 1: Run tests and checks (formatting, clippy, build, test) fmt: image: rust commands: - rustup default stable - cargo fmt --all -- --check when: branch: main event: [ push, pull_request ] clippy: image: rust commands: - rustup default stable - cargo clippy --jobs 2 -- -D clippy::all when: branch: main event: [ push, pull_request ] build: image: rust commands: - rustup default stable - cargo build --release --verbose --jobs 2 when: branch: main event: [ push, pull_request ] test: image: rust commands: - rustup default stable - cargo test --verbose --jobs 2 when: branch: main event: [ push, pull_request ]