Skip to content

Commit

Permalink
chore(ci): run Clippy in Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaslong committed Jan 7, 2021
1 parent 9e51e8f commit 0cf7146
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,48 +29,48 @@ jobs:
command: fmt
args: --all -- --check

# clippy:
# name: Clippy
# runs-on: ubuntu-latest
# env:
# RUSTFLAGS: -Dwarnings
# strategy:
# matrix:
# rust:
# - stable
# - nightly
#
# steps:
# - name: Checkout
# uses: actions/checkout@v2
#
# - name: Install Rust (${{ matrix.rust }})
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: ${{ matrix.rust }}
# override: true
# components: clippy
#
# - name: Check examples
# uses: actions-rs/cargo@v1
# with:
# command: clippy
# args: --examples --all
#
# - name: Check examples with all features on stable
# uses: actions-rs/cargo@v1
# with:
# command: clippy
# args: --examples --all-features --all
# if: matrix.rust == 'stable'
#
# - name: Check benchmarks on nightly
# uses: actions-rs/cargo@v1
# with:
# command: clippy
# args: --all-features --examples --all --benches
# if: matrix.rust == 'nightly'
clippy:
name: Clippy
runs-on: ubuntu-latest
env:
RUSTFLAGS: -Dwarnings
strategy:
matrix:
rust:
- stable
- nightly

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Rust (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: clippy

- name: Check examples
uses: actions-rs/cargo@v1
with:
command: clippy
args: --examples --all

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

- name: Check benchmarks on nightly
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features --examples --all --benches
if: matrix.rust == 'nightly'

test:
name: Check Tests (Simple)
Expand Down

0 comments on commit 0cf7146

Please sign in to comment.