refact: replace request response protocol with stream protocol #45
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: Check and test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
name: Check and test | |
strategy: | |
matrix: | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup protoc | |
uses: arduino/[email protected] | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup rust toolchain | |
run: | | |
rustup install nightly | |
rustup component add rustfmt --toolchain nightly | |
rustup show | |
- name: Install nextest | |
uses: taiki-e/install-action@nextest | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: check-and-test-${{ matrix.platform }}-v1 | |
- name: Check code format | |
run: cargo +nightly fmt -- --check | |
- name: Check the package for errors | |
run: cargo check --all | |
- name: Lint rust sources | |
run: cargo clippy --all-targets --all-features --tests --benches -- -D warnings | |
- name: Execute rust tests | |
run: cargo nextest run --all-features |