Fail checks when warnings occur

This commit is contained in:
Ryan Johnson 2022-09-17 23:56:40 -07:00 committed by GitHub
parent d459df8b2c
commit 70ef63aae3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,9 +24,9 @@ jobs:
with:
components: clippy, rustfmt
- name: Validate formatting on ${{ matrix.os }}
- name: Validate formatting
run: cargo fmt --all -- --check
- name: Run clippy lints on ${{ matrix.os }}
run: cargo +stable clippy --no-deps --all-features --all-targets
- name: Run tests on ${{ matrix.os }}
- name: Run clippy lints
run: cargo +stable clippy --no-deps --all-features --all-targets -- -D warnings
- name: Run tests
run: cargo +stable test --all-features --all-targets