mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-18 20:11:03 +00:00
CICD: Add 'cargo fmt' check
This commit is contained in:
parent
f5c1cb2dff
commit
cbd96237fd
7
.github/workflows/CICD.yml
vendored
7
.github/workflows/CICD.yml
vendored
@ -27,7 +27,12 @@ jobs:
|
||||
toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}
|
||||
default: true
|
||||
profile: minimal # minimal component installation (ie, no documentation)
|
||||
components: clippy
|
||||
components: clippy, rustfmt
|
||||
- name: Ensure `cargo fmt` has been run
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: -- --check
|
||||
- name: Run clippy (on minimum supported rust version to prevent warnings we can't fix)
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
|
Loading…
x
Reference in New Issue
Block a user