Skip to content

Add github workflow for running linters #1

Add github workflow for running linters

Add github workflow for running linters #1

Workflow file for this run

name: Run linters
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: clippy, rustfmt
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- -D warnings
- name: Run fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check