Skip to content

Add clippy github action #499

Add clippy github action

Add clippy github action #499

Workflow file for this run

name: Main
on:
pull_request:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true
- name: Install ZeroMQ
run: sudo apt update && sudo apt install -y --no-install-recommends libzmq3-dev
- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
- name: cargo doc
uses: actions-rs/cargo@v1
with:
command: doc
- name: clippy check
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -D warnings