ci: add Clippy check for both the daemon and the GUI

This commit is contained in:
Antoine Poinsot 2022-10-13 14:22:13 +02:00
parent 6871407b1a
commit 7e911b8bb7
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304
2 changed files with 6 additions and 1 deletions

View File

@ -10,10 +10,12 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
components: rustfmt, clippy
override: true
- name: rustfmt
run: cargo fmt -- --check
- name: clippy
run: cargo clippy --all-features --all-targets -- -D warnings
unit_tests:
needs: linter
@ -54,6 +56,8 @@ jobs:
override: true
- name: rustfmt
run: cd gui && cargo fmt -- --check
- name: clippy
run: cargo clippy --all-features --all-targets -- -D warnings
unit_tests_gui:
needs: linter_gui

1
clippy.toml Normal file
View File

@ -0,0 +1 @@
msrv = "1.48"