forked from mirrors/gstreamer-rs
CI: Add a rustfmt check
This commit is contained in:
parent
947ddc809d
commit
c3e7ab2f61
1 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
stages:
|
||||
- "test"
|
||||
- "lint"
|
||||
|
||||
.cargo_cache: &cache
|
||||
cache:
|
||||
|
@ -60,3 +61,11 @@ test nightly:
|
|||
image: "rustlang/rust:nightly-slim"
|
||||
allow_failure: true
|
||||
<<: *cargo_test
|
||||
|
||||
rustfmt:
|
||||
image: "rustlang/rust:nightly-slim"
|
||||
stage: "lint"
|
||||
script:
|
||||
- rustup component add rustfmt-preview
|
||||
- cargo fmt --version
|
||||
- cargo fmt -- --color=always --check
|
||||
|
|
Loading…
Reference in a new issue