Add clippy and fmt checks and conform to clippy style

This commit is contained in:
QuantumEntangledAndy authored and George Hilliard committed 2020-09-17 09:38:27 -05:00
1 parent fab6a11820
commit b0eee39f13
8 files changed
+56 -11

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
name: Style
on: [push, pull_request]
jobs:
check_clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
check_fmt:
name: Rust-fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt
override: true
- name: rustfmt
run: |
cargo +nightly fmt -- --check