forked from mirrors/gstreamer-rs
CI: Add a rustfmt check
This commit is contained in:
parent
4127425f6b
commit
a585519db4
1 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
stages:
|
stages:
|
||||||
- "test"
|
- "test"
|
||||||
|
- "lint"
|
||||||
|
|
||||||
.cargo_cache: &cache
|
.cargo_cache: &cache
|
||||||
cache:
|
cache:
|
||||||
|
@ -60,3 +61,11 @@ test nightly:
|
||||||
image: "rustlang/rust:nightly-slim"
|
image: "rustlang/rust:nightly-slim"
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
<<: *cargo_test
|
<<: *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