Refactor RpcService methods #137
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: CI | |
on: [push, pull_request] | |
jobs: | |
lint_and_test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
rust: [stable] | |
steps: | |
- name: Set up Rust toolchain | |
uses: hecrj/setup-rust-action@v2 | |
with: | |
rust-version: ${{ matrix.rust }} | |
- name: Check out the code | |
uses: actions/checkout@v4 | |
- name: Install protoc on Ubuntu | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y protobuf-compiler | |
- name: Install protoc on macOS | |
if: runner.os == 'macOS' | |
run: | | |
brew install protobuf | |
- name: Install Clippy | |
run: rustup component add clippy | |
- name: Run Clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
- name: Run tests | |
env: | |
RUST_MIN_STACK: 8388608 | |
run: cargo test --verbose -- --test-threads=1 --nocapture |