diff options
author | Steven Fackler <sfackler@gmail.com> | 2020-05-24 14:16:49 -0700 |
---|---|---|
committer | Steven Fackler <sfackler@gmail.com> | 2020-05-24 16:31:04 -0700 |
commit | f401ba2ec1957cecbe98b81afd9a188f76052883 (patch) | |
tree | d7414f75961f84c1560a6d20c7289b3ef46fbd17 /.github/workflows | |
parent | 406031991ff3d25e33ca7c74ac1c3790b303e67a (diff) | |
download | rust-openssl-f401ba2ec1957cecbe98b81afd9a188f76052883.zip |
Run clippy
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci.yml | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14c0f9bd..5f611859 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,6 @@ on: push: branches: - master - - github-actions env: RUSTFLAGS: -Dwarnings @@ -23,3 +22,28 @@ jobs: run: rustup update stable && rustup default stable - name: Check formatting run: cargo fmt --all -- --check + + clippy: + name: clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Rust + run: rustup update stable && rustup default stable + - name: Get rust version + id: rust-version + run: echo "::set-output name=version::$(rustc --version)" + - name: Create lockfile + run: cargo generate-lockfile + - name: Cache cargo registry + uses: actions/cache@v1 + with: + path: ~/.cargo/registry/cache + key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }} + - name: Cache target directory + uses: actions/cache@v1 + with: + path: target + key: clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }} + - name: Check clippy + run: cargo clippy --all --all-targets |