Run cargo clippy right after check; install missing components
Check, test and lint using Cargo / Check and lint (push) Successful in 2m57s Details

This commit is contained in:
Paul van Tilburg 2023-04-25 16:26:32 +02:00
parent fd00ef0b4f
commit bc22fd2d70
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
1 changed files with 7 additions and 6 deletions

View File

@ -19,6 +19,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Use sparse Cargo index for crates.io
run: echo -e '[registries.crates-io]\nprotocol = "sparse"' >> /root/.cargo/config.toml
@ -28,18 +29,18 @@ jobs:
with:
command: check
- name: Run cargo fmt
uses: https://github.com/actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo clippy
uses: https://github.com/actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- name: Run cargo fmt
uses: https://github.com/actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
# TODO: Add a test suite first!
# - name: Run cargo test
# uses: https://github.com/actions-rs/cargo@v1