-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(clippy): Enable clippy ci for all pushs & prs
- Loading branch information
1 parent
64c4505
commit ae7415e
Showing
2 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"on": { "push": {}, "pull_request": {} }, | ||
"name": "Clippy", | ||
"permissions": { "security-events": "write" }, | ||
"jobs": | ||
{ | ||
"enforce-clippy": | ||
{ | ||
"runs-on": "ubuntu-latest", | ||
"steps": | ||
[ | ||
{ | ||
"name": "Checkout", | ||
"uses": "actions/checkout@v4", | ||
}, | ||
{ | ||
"name": "Install Rust", | ||
"uses": "dtolnay/rust-toolchain@master", | ||
"with": | ||
{ | ||
"components": "clippy", | ||
"toolchain": "nightly-2024-01-01", | ||
}, | ||
}, | ||
{ | ||
"name": "Cache", | ||
"uses": "Swatinem/rust-cache@v2", | ||
}, | ||
{ | ||
"name": "Install tools", | ||
"run": "cargo install clippy-sarif sarif-fmt", | ||
}, | ||
{ | ||
"name": "Generate SARIF", | ||
"run": | ||
"cargo clippy --all-features --message-format=json | | ||
clippy-sarif | tee results.sarif | sarif-fmt", | ||
}, | ||
{ | ||
"name": "Upload SARIF file", | ||
"uses": "github/codeql-action/upload-sarif@v2", | ||
"with": { "sarif_file": "results.sarif" }, | ||
}, | ||
], | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[toolchain] | ||
channel = "nightly" | ||
channel = "nightly-2024-01-01" |