Skip to content

Feature | Chicago Shotspotter Map #56

Feature | Chicago Shotspotter Map

Feature | Chicago Shotspotter Map #56

Workflow file for this run

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
env:
LEAFLET_ACCESS_TOKEN: ${{ secrets.LEAFLET_ACCESS_TOKEN }}
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 }}