Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,47 @@ jobs:

- name: Run Tests
run: cargo test --verbose

udeps:
name: Unused Dependencies (cargo-udeps)
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set Up Rust (nightly for udeps)
uses: dtolnay/rust-toolchain@nightly

- name: Cache Cargo Dependencies
uses: Swatinem/rust-cache@v2

- name: Install protoc for gRPC server
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler

- name: Install cargo-udeps
run: cargo +nightly install cargo-udeps --locked

- name: Run cargo-udeps
run: cargo +nightly udeps --workspace --all-targets --all-features

taplo:
name: Taplo (TOML formatting)
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set Up Rust (stable for cargo install)
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Cache Cargo Dependencies
uses: Swatinem/rust-cache@v2

- name: Install taplo
run: cargo +stable install taplo-cli --version ^0.9 --locked --force

- name: Check TOML formatting with taplo
run: taplo format --check
Loading
Loading