-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db0c9e3
commit d55656e
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,20 @@ jobs: | |
- run: rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu | ||
- name: fmt check | ||
run: cargo fmt --all -- --check | ||
|
||
clippy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout repo" | ||
uses: actions/checkout@v4 | ||
- name: "Use caching" | ||
uses: Swatinem/[email protected] | ||
- name: "Install nightly toolchain" | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
override: true | ||
- name: "Install clippy" | ||
run: rustup component add clippy --toolchain nightly-x86_64-unknown-linux-gnu | ||
- name: "Run linting" | ||
run: cargo clippy -- -D warnings |