Skip to content

Optimized imports

Optimized imports #654

Workflow file for this run

# Copyright (C) 2026 Owen Debiasio
# Licensed under the GNU General Public License v3.0 or later.
# Full notice available in the root README.md or COPYING file.
name: Rust Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
jobs:
Rust:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: Format check
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets --all-features
- name: Build (release)
run: cargo build --release
- name: Run tests
run: cargo test