-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for code quality improvements on all rust source code with `clippy` in the `test` workspace.
- Loading branch information
1 parent
1ba7b47
commit 5dacdec
Showing
1 changed file
with
43 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Run `clippy` on the `test` workspace | ||
--- | ||
name: Rust - Run Clippy to check lints (test workspace) | ||
on: | ||
pull_request: | ||
paths: | ||
- 'test/**/*.rs' | ||
workflow_dispatch: | ||
jobs: | ||
clippy-check: | ||
name: Clippy linting | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
components: clippy | ||
override: true | ||
|
||
- name: Install build dependencies | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libdbus-1-dev | ||
- name: Clippy check | ||
working-directory: test | ||
shell: bash | ||
env: | ||
RUSTFLAGS: --deny warnings | ||
run: | | ||
time cargo clippy --locked -- -W clippy::unused_async |