fmt-check
This commit is contained in:
parent
ae31892358
commit
5427ea05a8
|
@ -4,3 +4,9 @@
|
||||||
entry: cargo-lock-updater
|
entry: cargo-lock-updater
|
||||||
language: script
|
language: script
|
||||||
types: [text]
|
types: [text]
|
||||||
|
- id: fmt-check
|
||||||
|
name: Check formatting
|
||||||
|
description: Runs make fmt-check
|
||||||
|
entry: fmt-check
|
||||||
|
language: script
|
||||||
|
types: [text]
|
||||||
|
|
|
@ -4,9 +4,3 @@ find . -type f -name 'Cargo.lock' -print0 | while IFS=$'\0' read -r -d '' file;
|
||||||
(cd "$(dirname "$file")" && cargo update -wq)
|
(cd "$(dirname "$file")" && cargo update -wq)
|
||||||
git add $file
|
git add $file
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -f "Makefile" ]; then
|
|
||||||
if [ ! -z $(grep "fmt-check:" "Makefile") ]; then
|
|
||||||
make fmt-check 2>&1 >/dev/null
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue