This is an automated email from the ASF dual-hosted git repository.
aaronai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git
The following commit(s) were added to refs/heads/master by this push:
new ba97b2dd Revert "Remove clippy for testing (#494)" (#495)
ba97b2dd is described below
commit ba97b2dd7b840e5103f2a911fca27f344cf1816c
Author: Aaron Ai <[email protected]>
AuthorDate: Sun Apr 23 22:22:34 2023 +0800
Revert "Remove clippy for testing (#494)" (#495)
This reverts commit 23c87ad0fbb2cecda15e3910b6fabbc946390ae1.
---
.github/workflows/rust_build.yml | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/.github/workflows/rust_build.yml b/.github/workflows/rust_build.yml
index eb39e57d..404c2104 100644
--- a/.github/workflows/rust_build.yml
+++ b/.github/workflows/rust_build.yml
@@ -17,6 +17,26 @@ jobs:
- name: Code format check
working-directory: ./rust
run: cargo fmt --check
+ clippy:
+ runs-on: ubuntu-latest
+ name: clippy check
+ permissions: write-all
+ strategy:
+ fail-fast: false
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: true
+ - name: Install stable
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+ components: clippy
+ - name: Clippy check
+ uses: actions-rs/clippy-check@v1
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ args: --all-features --manifest-path rust/Cargo.toml -- -D warnings
doc:
runs-on: ubuntu-latest
name: doc check