[ci] Enable clippy for stable and tests by default

This commit is contained in:
Steve Myers 2020-10-28 21:35:15 -07:00
parent 4f7355ec82
commit 4a75f96d35
No known key found for this signature in database
GPG Key ID: 8105A46B22C2D051

View File

@ -20,15 +20,15 @@ jobs:
- key-value-db - key-value-db
- electrum - electrum
- compact_filters - compact_filters
- cli-utils,esplora - cli-utils,esplora,key-value-db,electrum
- compiler - compiler
include: include:
- rust: stable - rust: stable
features: compact_filters features: compact_filters
clippy: false clippy: skip
- rust: 1.45.0 - rust: 1.45.0
features: compact_filters features: compact_filters
clippy: false clippy: skip
steps: steps:
- name: checkout - name: checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -53,12 +53,13 @@ jobs:
command: build command: build
args: --features ${{ matrix.features }} --no-default-features args: --features ${{ matrix.features }} --no-default-features
- name: clippy - name: clippy
if: ${{ matrix.clippy == true }} if: ${{ matrix.rust == 'stable' && matrix.clippy != 'skip' }}
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: clippy command: clippy
args: -- -D warnings args: -- -D warnings
- name: test - name: test
if: ${{ matrix.test != 'skip' }}
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: test command: test