Skip to content

Commit 70d0d7f

Browse files
committed
Fix clippy CI
1 parent c3053cd commit 70d0d7f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/lint.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,20 @@ jobs:
3838
- name: Install clippy-sarif and sarif-fmt
3939
run: cargo install clippy-sarif sarif-fmt --locked --git https://github.com/psastras/sarif-rs.git --rev 11c33a53f6ffeaed736856b86fb6b7b09fabdfd8
4040

41-
- name: Cargo clippy
41+
- name: Cargo clippy-sarif
4242
run: cargo clippy --all-features --tests --message-format=json |
4343
clippy-sarif | tee clippy_result.sarif | sarif-fmt
4444
env:
4545
RUSTFLAGS: "-D warnings"
4646

47+
# Run it again but this time with the sarif output so that the
48+
# status code of the command is caught and reported as failed in GitHub.
49+
# This should be cached from the previous step and should be fast.
50+
- name: Cargo clippy
51+
run: cargo clippy --all-features --tests
52+
env:
53+
RUSTFLAGS: "-D warnings"
54+
4755
- name: Upload Clippy results to GitHub
4856
uses: github/codeql-action/upload-sarif@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
4957
with:

0 commit comments

Comments
 (0)