Add cargo clippy to GH Actions

pull/140/head
Frederick Zhang 2 years ago
parent 5b0ad05960
commit d2f6a9c73f
No known key found for this signature in database
GPG Key ID: 980A192C361BE1AE

@ -50,6 +50,19 @@ jobs:
- name: cargo fmt
run: cargo fmt -- --check
clippy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- name: cargo clippy
run: cargo clippy --locked --tests -- -D warnings
test:
runs-on: ubuntu-18.04
steps:

Loading…
Cancel
Save