This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
Greenlight #100
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: lint | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Set Toolchain | |
# https://github.com/dtolnay/rust-toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: typos-action | |
uses: crate-ci/[email protected] | |
- name: Run fmt | |
run: cargo fmt --all --check | |
- name: Run clippy | |
run: | | |
sudo apt-get install -y protobuf-compiler | |
rustup component add clippy | |
cargo clippy --all |