Run clippy in workflow
Signed-off-by: Walker Crouse <Walker.Crouse@bjss.com>
This commit is contained in:
parent
717c910c57
commit
79e3287db6
|
@ -14,10 +14,14 @@ jobs:
|
|||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Check formatting
|
||||
run: ./scripts/checkfmt.sh
|
||||
- name: Prepare
|
||||
run: rustup component add clippy
|
||||
- name: Build
|
||||
run: ./scripts/buildall.sh
|
||||
- name: Check formatting
|
||||
run: ./scripts/checkfmt.sh
|
||||
- name: Run clippy
|
||||
run: ./scripts/lintall.sh
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
|
||||
|
@ -26,10 +30,12 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Prepare
|
||||
run: "sudo apt -y install avahi-daemon libavahi-client-dev && sudo systemctl start avahi-daemon.service"
|
||||
- name: Check formatting
|
||||
run: ./scripts/checkfmt.sh
|
||||
run: "rustup component add clippy && sudo apt -y install avahi-daemon libavahi-client-dev && sudo systemctl start avahi-daemon.service"
|
||||
- name: Build
|
||||
run: ./scripts/buildall.sh
|
||||
- name: Check formatting
|
||||
run: ./scripts/checkfmt.sh
|
||||
- name: Run clippy
|
||||
run: ./scripts/lintall.sh
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
cargo build --workspace --verbose
|
||||
(
|
||||
cd examples
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
find examples/browser/src examples/service/src zeroconf/src zeroconf-macros/src -type f -name *.rs -print0 | xargs -0 -n1 rustfmt --check --verbose
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
cargo clippy -- -D warnings
|
||||
cargo clippy --all-targets --all-features -- -D warnings
|
||||
(
|
||||
cd examples
|
||||
cargo clippy -- -D warnings
|
||||
cargo clippy --all-targets --all-features -- -D warnings
|
||||
)
|
Loading…
Reference in New Issue