name: Rust CI on: push: branches: [ "main", "master" ] pull_request: branches: [ "main", "master" ] env: CARGO_TERM_COLOR: always jobs: build_and_test: name: Build & Test runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Set up Rust uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy - name: Check formatting run: cargo fmt --all -- --check - name: Run Clippy Lints run: cargo clippy -- -D warnings - name: Build run: cargo build --verbose - name: Run Tests run: cargo test --verbose