Bump tokio from 1.41.0 to 1.43.0 #524
This file contains 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 Workspace CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
build_and_test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Cache cargo registry | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install Rust toolchain | |
run: | | |
rustup update --no-self-update stable | |
rustup component add --toolchain stable rustfmt rust-src | |
rustup default stable | |
- name: Check formatting | |
run: | | |
cargo fmt --all -- --check | |
- name: Lint with clippy | |
run: | | |
cargo clippy --all-targets --all-features -- -D warnings | |
- name: Build | |
run: | | |
cargo build --verbose | |
- name: Run tests | |
run: | | |
cargo test --verbose |