diff options
author | David Peter <mail@david-peter.de> | 2022-01-29 12:48:19 +0100 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2022-01-29 13:01:46 +0100 |
commit | b3399c239bfc702915606c415b5ce9f755e9d437 (patch) | |
tree | acd4a42c721fd1b943ebb4770ff5564d1866d483 /.github | |
parent | 4377954cf9f8eae9d1ded194dab7912fc47bcbed (diff) |
Add clippy run in CI/CD
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/CICD.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 43f9078..a40f409 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -46,11 +46,18 @@ jobs: steps: - name: Checkout source code uses: actions/checkout@v2 + - name: Install rust toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }}) uses: actions-rs/toolchain@v1 with: toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }} default: true + components: clippy + - name: Run clippy (on minimum supported rust version to prevent warnings we can't fix) + uses: actions-rs/cargo@v1 + with: + command: clippy + args: --locked --all-targets --all-features profile: minimal # minimal component installation (ie, no documentation) - name: Run tests uses: actions-rs/cargo@v1 |