Move clippy into seperate workflow

This commit is contained in:
9names 2021-05-04 17:41:33 +10:00
parent 95a1080a46
commit 41c6db6811
2 changed files with 18 additions and 5 deletions

View file

@ -12,15 +12,10 @@ jobs:
target: thumbv6m-none-eabi
override: true
profile: minimal
components: clippy
- uses: actions-rs/cargo@v1
with:
command: check
args: --workspace
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -Dwarnings
- uses: actions-rs/cargo@v1
with:
command: test

18
.github/workflows/clippy.yml vendored Normal file
View file

@ -0,0 +1,18 @@
on: [push, pull_request]
name: Clippy check
jobs:
clippy_check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: thumbv6m-none-eabi
override: true
profile: minimal
components: clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -Dwarnings