Skip to content
Snippets Groups Projects
Unverified Commit ba36b2d2 authored by Sebastian Kunert's avatar Sebastian Kunert Committed by GitHub
Browse files

CI: Only format umbrella crate during umbrella check (#7139)

The umbrella crate quick-check was always failing whenever there was
something misformated in the whole codebase.
This leads to an error that indicates that a new crate was added, even
when it was not.

After this PR we only apply `cargo fmt` to the newly generated umbrella
crate `polkadot-sdk`. This results in this check being independent from
the fmt job which should check the entire codebase.
parent d38bb953
No related merge requests found
Pipeline #511664 waiting for manual action with stages
in 31 minutes and 53 seconds
......@@ -138,7 +138,7 @@ jobs:
# Fixes "detected dubious ownership" error in the ci
git config --global --add safe.directory '*'
python3 scripts/generate-umbrella.py --sdk . --version 0.1.0
cargo +nightly fmt --all
cargo +nightly fmt -p polkadot-sdk
if [ -n "$(git status --porcelain)" ]; then
cat <<EOF
......
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