tokio 1.29.1 #55
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: Formatter and linter | |
on: [push] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install minimal stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt-get install protobuf-compiler | |
- name: Check code formatting | |
run: cargo fmt --all -- --check | |
- name: Check cargo clippy warnings | |
run: cargo clippy --workspace --all-targets --all-features -- -D warnings |