Skip to content

Commit

Permalink
ci: forbid warnings from cargo test.
Browse files Browse the repository at this point in the history
This commit configures the `cargo test` matrix portion of CI to treat
any warnings as errors. This will let us catch things like unused
imports in test code that shouldn't be merged to main.
  • Loading branch information
cpu committed Jun 16, 2023
1 parent 01fcdbc commit 0a5ffe0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ jobs:

- run: |
cargo test -vv ${{ matrix.features }} ${{ matrix.mode }}
env:
RUSTFLAGS: "-D warnings"
coverage:
runs-on: ubuntu-20.04
Expand Down

0 comments on commit 0a5ffe0

Please sign in to comment.