Skip to content
Snippets Groups Projects
Commit b6406e41 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

Checks format in CI

parent 983d0466
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ before_script:
- mkdir -p $HOME/.cargo/bin
- curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.31/mdbook-v0.4.31-x86_64-unknown-linux-musl.tar.gz | tar -xz --directory=$HOME/.cargo/bin
- export PATH=$PATH:$HOME/.cargo/bin
- rustup component add rustfmt
##
## Install ssh-agent if not already installed, it is required by Docker.
##
......
......@@ -14,4 +14,6 @@ for d in *; do
cargo test --manifest-path $d/Cargo.toml --workspace --verbose
echo ==================== Running cargo doc for $d ====================
cargo doc --manifest-path $d/Cargo.toml
echo ==================== Running cargo fmt for $d ====================
cargo fmt --all --manifest-path $d/Cargo.toml -- --check
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment