Skip to content

Commit

Permalink
Add code linting
Browse files Browse the repository at this point in the history
  • Loading branch information
cocatrip committed Jan 12, 2022
1 parent 07afb67 commit ef9ae88
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@ jobs:
command: fmt
args: --all -- --check

lint:
name: Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: default
components: clippy
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- -D warnings

build:
name: Build
runs-on: ubuntu-latest
Expand Down

0 comments on commit ef9ae88

Please sign in to comment.