Skip to content

Commit

Permalink
chore: add clippy check in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ma committed Dec 10, 2023
1 parent 66ed260 commit 7aa7fd6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,25 @@ on:
workflow_dispatch:

jobs:
clippy:
runs-on: ubuntu-latest
steps:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: Check out repository
uses: actions/checkout@v3

- name: Generate Cargo.lock
run: cargo generate-lockfile

- name: Clippy
run: cargo clippy --all-targets -- -D warnings

build:
needs: clippy
if: "!contains(github.event.head_commit.message, 'skip ci')"
strategy:
fail-fast: false
Expand Down

0 comments on commit 7aa7fd6

Please sign in to comment.