Fail CI if code isn't formatted

type: testing
This commit is contained in:
Casey Rodarmor 2020-01-04 20:24:32 -08:00
parent 408735621e
commit 7de1c04776
No known key found for this signature in database
GPG Key ID: 556186B153EC6FE0

View File

@ -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