Skip to content

Commit

Permalink
Attempt to correct analysis paths
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 12, 2024
1 parent 48f5ce5 commit ee8c293
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rust-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
--all-features
--message-format=json --
-A clippy::needless_return |
sed 's#src/#rust/src/#' |
clippy-sarif|
sed 's#src/#rust/src/#' |
tee ../rust-clippy-results.sarif |
sarif-fmt

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:

- name: rust-grcov
if: ${{ matrix.toolchain == 'nightly' }}
run: cargo install grcov && grcov rust
run: cargo install grcov && grcov rust --path-mapping rust/mapping.json

- name: Upload coverage reports to Codecov
if: ${{ matrix.toolchain == 'nightly' }}
Expand Down
3 changes: 3 additions & 0 deletions rust/mapping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"src/": "rust/src/"
}

0 comments on commit ee8c293

Please sign in to comment.