name: Check
on:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
with:
components: rustfmt, clippy
- uses: actions/checkout@master
- name: Format
run: |
cargo fmt --all -- --check
- name: Clippy (no default features)
run: |
cargo clippy --no-default-features -- -D warnings
- name: Clippy (all features)
run: |
cargo clippy --all-features -- -D warnings