]> git.lizzy.rs Git - rust.git/blobdiff - book/src/continuous_integration/github_actions.md
Book: Improve chapter on CI
[rust.git] / book / src / continuous_integration / github_actions.md
index 4154c60dbd211ed8f1ef28c2c8b176a214befe59..42a43ef1380166baa78ede87652b6ba4292f239f 100644 (file)
@@ -6,11 +6,16 @@ pre-installed. So all you have to do is to run `cargo clippy`.
 ```yml
 on: push
 name: Clippy check
+
+# Make sure CI fails on all warnings, including Clippy lints
+env:
+  RUSTFLAGS: "-Dwarnings"
+
 jobs:
   clippy_check:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v1
       - name: Run Clippy
-        run: cargo clippy
+        run: cargo clippy --all-targets --all-features
 ```