Skip to content

Paper (#1404)

Paper (#1404) #2373

Workflow file for this run

name: Lints Workflow
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
- '*/*'
workflow_dispatch:
jobs:
lints:
runs-on: ubuntu-latest
timeout-minutes: 25
strategy:
matrix:
features:
- "async-std-executor,demo,docs,doc-images,hotshot-testing,channel-async-std,slow-tests"
- "async-std-executor,demo,docs,doc-images,hotshot-testing,channel-flume,slow-tests"
- "tokio-executor,demo,docs,doc-images,hotshot-testing,channel-tokio,slow-tests"
- "tokio-executor,demo,docs,doc-images,hotshot-testing,channel-flume,slow-tests"
steps:
- uses: styfle/[email protected]
name: Cancel Outdated Builds
with:
all_but_latest: true
access_token: ${{ github.token }}
- uses: actions/checkout@v3
name: Checkout Repository
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
- uses: Swatinem/rust-cache@v2
name: Enable Rust Caching
- name: Format Check
run: cargo fmt -- --check
- name: Clippy
run: |
cargo clippy --workspace --all-targets --no-default-features --features "${{ matrix.features }}" --bins --tests --examples -- -D warnings