Skip to content

add sanity checks workflow #9

add sanity checks workflow

add sanity checks workflow #9

on:
pull_request:
branches:
- main
jobs:
cargo_clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy
override: true
- run: cargo clippy
cargo_fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt
override: true
- run: rustfmt