]> git.lizzy.rs Git - rust.git/blob - book/src/continuous_integration/github_actions.md
Auto merge of #10007 - Jarcho:issue_10005, r=giraffate
[rust.git] / book / src / continuous_integration / github_actions.md
1 # GitHub Actions
2
3 GitHub hosted runners using the latest stable version of Rust have Clippy pre-installed.
4 It is as simple as running `cargo clippy` to run lints against the codebase.
5
6 ```yml
7 on: push
8 name: Clippy check
9
10 # Make sure CI fails on all warnings, including Clippy lints
11 env:
12   RUSTFLAGS: "-Dwarnings"
13
14 jobs:
15   clippy_check:
16     runs-on: ubuntu-latest
17     steps:
18       - uses: actions/checkout@v3
19       - name: Run Clippy
20         run: cargo clippy --all-targets --all-features
21 ```