Skip to content

Add lint workflow that runs clippy and rustfmt #1

Add lint workflow that runs clippy and rustfmt

Add lint workflow that runs clippy and rustfmt #1

Workflow file for this run

name: Lint
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run rustfmt
run: cargo fmt --check