Skip to content

Commit

Permalink
chore(ci): update clippy action (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
polazarus authored Apr 9, 2024
1 parent 5c5d7a3 commit 4e7c5ca
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 44 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/rust-clippy.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "38 18 * * *"

env:
CARGO_TERM_COLOR: always
Expand All @@ -27,3 +29,34 @@ jobs:

- name: Run tests
run: cargo test --verbose

clippy:
name: Run Clippy
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install up-to-date toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: Install required CLI tools (clippy-sarif and sarif-fmt)
uses: taiki-e/install-action@v2
with:
tool: clippy-sarif, sarif-fmt

- name: Run Clippy
run: cargo clippy
--all-features
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
continue-on-error: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: rust-clippy-results.sarif
category: Clippy

0 comments on commit 4e7c5ca

Please sign in to comment.