feat: v0.6.0 - Performance optimizations for 1M+ events/sec #5
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: Rust Quality Gates | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| paths: | |
| - 'apps/core/**' | |
| - '.github/workflows/rust-quality.yml' | |
| pull_request: | |
| branches: [ main, develop ] | |
| paths: | |
| - 'apps/core/**' | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: 1 | |
| jobs: | |
| quality-gates: | |
| name: Quality Gates (Format, Lint, Sort, Test) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: "1.82" | |
| components: rustfmt, clippy | |
| - name: Install cargo-sort | |
| run: cargo install cargo-sort | |
| - name: Cache cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/registry | |
| key: cargo-registry-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| cargo-registry- | |
| - name: Cache cargo index | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/git | |
| key: cargo-index-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| cargo-index- | |
| - name: Cache target directory | |
| uses: actions/cache@v4 | |
| with: | |
| path: apps/core/target | |
| key: cargo-target-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| cargo-target-${{ runner.os }}- | |
| - name: Check code formatting (rustfmt) | |
| working-directory: apps/core | |
| run: cargo fmt --check | |
| - name: Check Cargo.toml sorting | |
| working-directory: apps/core | |
| run: cargo sort --check | |
| - name: Run clippy (all warnings as errors) | |
| working-directory: apps/core | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Run tests | |
| working-directory: apps/core | |
| run: cargo test --lib | |
| - name: Build project | |
| working-directory: apps/core | |
| run: cargo build --lib --release | |
| msrv-check: | |
| name: MSRV Check (1.75.0) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Rust MSRV (1.75.0) | |
| uses: dtolnay/rust-toolchain@1.75.0 | |
| - name: Check compilation with MSRV | |
| working-directory: apps/core | |
| run: cargo check --lib |