We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98cf504 commit 35cbfbaCopy full SHA for 35cbfba
.github/workflows/clippy.yaml
@@ -0,0 +1,21 @@
1
+---
2
+name: clippy
3
+
4
+on:
5
+ pull_request:
6
+ branches: [main]
7
8
+jobs:
9
+ build:
10
+ name: clippy
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v1
15
+ - name: Add clippy component
16
+ run: rustup component add clippy
17
+ - name: Run clippy
18
+ uses: actions-rs/clippy-check@v1
19
+ with:
20
+ token: ${{ secrets.GITHUB_TOKEN }}
21
+ args: --all-features
github.tf
@@ -40,7 +40,7 @@ resource "github_branch_protection" "main" {
40
41
required_status_checks {
42
strict = true
43
- contexts = ["Lint"]
+ contexts = ["Lint", "clippy"]
44
}
45
46
required_pull_request_reviews {
0 commit comments