build(deps): bump tokio from 1.47.1 to 1.48.0 #515
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: Lint Rust | |
| on: [ pull_request ] | |
| jobs: | |
| rust-lint: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Filter | |
| uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| rust: | |
| - '**/Cargo.lock' | |
| - '**/Cargo.toml' | |
| - '**/*.rs' | |
| - '.github/workflows/rust-lint.yml' | |
| - name: Use Node.js | |
| if: steps.filter.outputs.rust == 'true' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| - name: Update Rust | |
| if: steps.filter.outputs.rust == 'true' | |
| run: rustup update | |
| - name: Add Clippy | |
| if: steps.filter.outputs.rust == 'true' | |
| run: rustup component add clippy | |
| - name: Build Rust project | |
| if: steps.filter.outputs.rust == 'true' | |
| run: cargo build | |
| - name: Rust Format check | |
| if: steps.filter.outputs.rust == 'true' | |
| run: cargo fmt -- --check | |
| - name: Rust Clippy check | |
| if: steps.filter.outputs.rust == 'true' | |
| run: cargo clippy -- -D warnings |