CI: make Clippy reuse build artifacts, other cleanup (#5357)

* CI: move clippy after build so it can reuse build artifacts

* CI: Remove unused rustfmt+clippy from venv
This commit is contained in:
Reilly Wood 2022-04-28 12:39:21 -07:00 committed by GitHub
parent f189369fd7
commit c78e28511d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,23 +45,23 @@ jobs:
command: fmt
args: --all -- --check
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all ${{ matrix.flags }} -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect
- name: Build Nushell
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.flags }}
args: --workspace ${{ matrix.flags }}
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace ${{ matrix.flags }} -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect
- name: Tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all ${{ matrix.flags }}
args: --workspace ${{ matrix.flags }}
python-virtualenv:
@ -85,7 +85,6 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
with: