Format Rust sources to satisfy CI checks. #13
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust (stable + components) | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Cargo fmt (check) | |
| run: cargo fmt --all -- --check | |
| - name: Cargo clippy (deny warnings) | |
| run: cargo clippy --workspace --all-targets --all-features -- -D warnings | |
| - name: Cargo check | |
| run: cargo check --workspace | |
| - name: Cargo test (compile only) | |
| run: cargo test --workspace --no-run | |