Implement grpc server #29
Workflow file for this run
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 CI | |
| on: | |
| push: | |
| branches: ['**'] | |
| pull_request: | |
| branches: ['**'] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build_and_test: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set Up Rust | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| components: clippy, rustfmt | |
| override: true | |
| - name: Cache Cargo Dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Check Code Formatting | |
| run: cargo fmt --all -- --check | |
| - name: Install protoc for gRPC server | |
| run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | |
| - name: Run Clippy (Linter) | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Build Project | |
| run: cargo build --verbose | |
| - name: Run Tests | |
| run: cargo test --verbose |