Feature | Chicago Shotspotter Map #48
Workflow file for this run
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
name: Rust code checks | |
on: | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
rustfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Running Rustfmt check | |
uses: mbrobbel/rustfmt-check@master | |
with: | |
args: "--manifest-path api/Cargo.toml" | |
commit-message: "✨ Formatted with Rustfmt ✨" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Run Clippy check | |
uses: giraffate/clippy-action@v1 | |
with: | |
reporter: "github-pr-review" | |
github_token: ${{ secrets.GITHUB_TOKEN }} |