Skip to content

Unit tests for the gRPC producer #85

Unit tests for the gRPC producer

Unit tests for the gRPC producer #85

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- main
tags-ignore: [ v.* ]
env:
CARGO_TERM_COLOR: always
PROTOC_VERSION: 3.23.4
jobs:
build:
runs-on: ubuntu-20.04
env:
RUSTFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v3
- name: Update Rust
run: |
rustup update
- name: Install protoc
uses: taiki-e/install-action@v2
with:
tool: protoc@${{ env.PROTOC_VERSION }}
- uses: Swatinem/rust-cache@v2
- name: test
run: |
cargo clippy --tests
cargo fmt -- --check
cargo test
- name: additional-examples-test
working-directory: examples/iot-service
run: |
cargo clippy --tests --no-default-features --features="grpc"
cargo test --no-default-features --features="grpc"