Merge pull request #1539 from EspressoSystems/ed/reduce-logging-2 #2428
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: 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 |