Skip to content

Commit

Permalink
clippy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ilevyor committed Mar 27, 2024
1 parent c6726cc commit 9987859
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@ concurrency:
group: ${{ github.workflow }}-${{ (github.ref == 'refs/heads/main' && github.sha) || github.ref }}
cancel-in-progress: true
jobs:
clippy_check:
runs-on: "nscloud-ubuntu-22.04-amd64-4x16"
clippy:
name: clippy
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: clone code
uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@clippy
- uses: Swatinem/rust-cache@v2
with:
submodules: true
- name: Install Protoc
run: sudo apt-get install -y protobuf-compiler
- run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --workspace --features test_ci --exclude marzano-wasm-bindings -- -D warnings
cache-on-failure: true
- run: cargo clippy --workspace --lib --examples --tests --benches --all-features --locked
env:
RUSTFLAGS: -D warnings

0 comments on commit 9987859

Please sign in to comment.