Skip to content

Introduce clippy (#13) #44

Introduce clippy (#13)

Introduce clippy (#13) #44

Workflow file for this run

name: continuous-integration
on: [push, pull_request]
env:
RUSTFLAGS: "-Dwarnings"
jobs:
build_and_test:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
features:
- --all-features
- --no-default-features
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Install protoc
run: sudo apt-get install protobuf-compiler
- name: Check formatting
run: cargo fmt --all -- --check
- name: Check
run: cargo check ${{ matrix.features }}
- name: Build
run: cargo build ${{ matrix.features }}
- name: Test
run: cargo test ${{ matrix.features }}
- name: Clippy
run: cargo clippy --all-targets --all-features