Enable clippy on CI

This commit is contained in:
Richard Feldman 2019-11-21 07:06:26 -05:00
parent 4e26084051
commit 5549614cb3

View file

@ -34,35 +34,27 @@ jobs:
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
name: cargo clean
with:
command: clean
- uses: actions-rs/cargo@v1
name: cargo update
with:
command: update
- uses: actions-rs/cargo@v1
name: cargo fmt --check
with:
command: fmt
args: --all -- --check
# clippy:
# name: Clippy
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: Install LLVM
# run: sudo ./ci/install-llvm.sh 8
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# override: true
# - run: rustup component add clippy
# - uses: actions-rs/cargo@v1
# name: cargo clippy
# with:
# command: clippy
# args: -- -D warnings
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install LLVM
run: sudo ./ci/install-llvm.sh 8
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
name: cargo clippy
with:
command: clippy
args: -- -D warnings