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:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
profile: minimal
|
profile: minimal
|
||||||
components: clippy
|
components: clippy, rustfmt
|
||||||
override: true
|
override: true
|
||||||
- name: Version
|
- name: Version
|
||||||
run: |
|
run: |
|
||||||
|
@ -31,3 +31,5 @@ jobs:
|
||||||
run: cargo test --verbose
|
run: cargo test --verbose
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: cargo clippy
|
run: cargo clippy
|
||||||
|
- name: Format
|
||||||
|
run: cargo fmt -- --check
|
||||||
|
|
Loading…
Reference in New Issue
Block a user