Skip to content

Commit

Permalink
Use sarif and review dog directly
Browse files Browse the repository at this point in the history
  • Loading branch information
fredizzimo committed Apr 7, 2024
1 parent bdd1e6f commit 3fa5303
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,23 @@ jobs:
target/
key: ${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Build
run: cargo build
- name: Install clippy sarif
uses: cargo-bins/cargo-binstall@main
with:
tool:
- clippy-sarif
- sarif-fmt

- name: Run clippy
uses: giraffate/clippy-action@v1
- name: Setup reviewdog
uses: reviewdog/action-setup@v1
with:
reporter: "github-check"
github_token: ${{ secrets.GITHUB_TOKEN }}
level: warning
fail_on_error: true
filter_mode: file
clippy_debug: true
reviewdog_version: latest

- name: Run clippy
- run: cargo clippy -message-format=json | clippy-sarif | tee clippy.sarif | sarif-fmt

- name: Run clippy reviewdog
- run: cat clippy.sarif > reviewdog -f=sarif -name=clippy -reporter=github-check -filter-mode=file -fail-on-error=true -level=warning

- name: Install neovim
uses: rhysd/action-setup-vim@v1
Expand Down

0 comments on commit 3fa5303

Please sign in to comment.