Skip to content

Commit

Permalink
Adds clippy and fmt check to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-goro authored and mbrubeck committed Feb 4, 2022
1 parent ed9dcd4 commit ba12cb5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/tests.yaml
Expand Up @@ -22,6 +22,29 @@ jobs:
toolchain: ${{ matrix.rust }}
override: true

- name: Install rustfmt + clippy
if: matrix.rust == 'stable'
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy

- name: Check Fmt
if: matrix.rust == 'stable'
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check

- name: Check Lints (all features)
if: matrix.rust == 'stable'
uses: actions-rs/cargo@v1
with:
command: clippy
args: --tests --all-features

- name: Test (default features)
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit ba12cb5

Please sign in to comment.