Skip to content

Commit

Permalink
[CI] Use clippy to detect random prints in the codebase (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex authored Aug 15, 2023
1 parent 1d7d765 commit 37ed959
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,23 @@ jobs:
command: fmt
args: --all -- --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D clippy::print_stderr -D clippy::print_stdout -D clippy::dbg_macro

default-build:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 37ed959

Please sign in to comment.