Fail CI if code isn't formatted
type: testing
This commit is contained in:
parent
408735621e
commit
7de1c04776
4
.github/workflows/rust.yaml
vendored
4
.github/workflows/rust.yaml
vendored
|
@ -18,7 +18,7 @@ jobs:
|
|||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
components: clippy
|
||||
components: clippy, rustfmt
|
||||
override: true
|
||||
- name: Version
|
||||
run: |
|
||||
|
@ -31,3 +31,5 @@ jobs:
|
|||
run: cargo test --verbose
|
||||
- name: Lint
|
||||
run: cargo clippy
|
||||
- name: Format
|
||||
run: cargo fmt -- --check
|
||||
|
|
Loading…
Reference in New Issue
Block a user