ci(actions): use matrix specific clippy args

This commit is contained in:
EdJoPaTo
2021-05-13 11:13:14 +02:00
parent cc12c96c36
commit 8e1f0438e5
+8 -1
View File
@@ -8,23 +8,30 @@ jobs:
test: test:
name: Test ${{ matrix.os }} ${{ matrix.toolchain }} name: Test ${{ matrix.os }} ${{ matrix.toolchain }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.toolchain == 'nightly' }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- os: ubuntu-latest - os: ubuntu-latest
toolchain: stable toolchain: stable
clippyargs: -D clippy::all -D clippy::pedantic
- os: macOS-latest - os: macOS-latest
toolchain: stable toolchain: stable
clippyargs: -D clippy::all -D clippy::pedantic
- os: ubuntu-latest - os: ubuntu-latest
toolchain: nightly toolchain: nightly
clippyargs: -W clippy::all -W clippy::pedantic
# - os: ubuntu-latest # - os: ubuntu-latest
# toolchain: 1.41.1 # Debian 10 Buster # toolchain: 1.41.1 # Debian 10 Buster
# clippyargs: -W clippy::all -W clippy::pedantic -A clippy::unknown-clippy-lints
- os: ubuntu-latest - os: ubuntu-latest
toolchain: 1.47.0 # Alpine 3.13 toolchain: 1.47.0 # Alpine 3.13
clippyargs: -W clippy::all -W clippy::pedantic -A clippy::unknown-clippy-lints
- os: ubuntu-latest - os: ubuntu-latest
toolchain: 1.48.0 # Debian 11 Bullseye toolchain: 1.48.0 # Debian 11 Bullseye
clippyargs: -W clippy::all -W clippy::pedantic -A clippy::unknown-clippy-lints
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@@ -40,7 +47,7 @@ jobs:
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: clippy command: clippy
args: --verbose --all-targets --all-features -- -D clippy::all -D clippy::pedantic -W clippy::unknown-clippy-lints args: --verbose --all-targets --all-features -- ${{ matrix.clippyargs }}
- name: Run tests - name: Run tests
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1