Skip to content

Commit

Permalink
Merge pull request #5 from saying121/dev
Browse files Browse the repository at this point in the history
ci(clippy): deny warnings
  • Loading branch information
saying121 authored Aug 29, 2024
2 parents 1b51682 + ce63594 commit 783c7a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
allow-expect-in-tests = true
allow-unwrap-in-tests = true
allow-dbg-in-tests = true
7 changes: 1 addition & 6 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,5 @@ jobs:
- name: Rust Cache
uses: Swatinem/rust-cache@v2

- name: Run Clippy Allow Warning
if: ${{ ! (github.ref == 'refs/heads/master' || github.event_name == 'pull_request') }}
run: cargo clippy --locked

- name: Run Clippy Deny Warning
if: github.ref == 'refs/heads/master' || github.event_name == 'pull_request'
run: cargo clippy --locked -- -D warnings
run: cargo clippy --tests --locked -- -D warnings

0 comments on commit 783c7a8

Please sign in to comment.