Create leader election system for aspen #219
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
on: | |
push: | |
pull_request: | |
name: Clippy check | |
jobs: | |
clippy_check: | |
permissions: | |
security-events: write | |
checks: write | |
contents: read | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Dependencies | |
run: sudo apt install protobuf-compiler | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
components: clippy | |
override: true | |
- uses: Swatinem/rust-cache@v1 | |
- run: cargo install clippy-sarif sarif-fmt | |
- run: cargo clippy --all-targets --all-features --message-format=json | | |
clippy-sarif | tee results.sarif | sarif-fmt | |
- name: Upload SARIF file | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: results.sarif | |
category: Rust Clippy |