Commit a585519d authored by Jordan Petridis's avatar Jordan Petridis 🌱 Committed by Sebastian Dröge

CI: Add a rustfmt check

parent 4127425f
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment