build: run check-format first
This commit is contained in:
parent
cc5de0a082
commit
ce1b0c0850
@ -14,7 +14,7 @@
|
|||||||
"release": "./scripts/release.sh",
|
"release": "./scripts/release.sh",
|
||||||
"copy": "./scripts/copy.sh",
|
"copy": "./scripts/copy.sh",
|
||||||
"test": "yarn build && ./scripts/test.sh",
|
"test": "yarn build && ./scripts/test.sh",
|
||||||
"ci": "yarn build && ./scripts/check-format.sh && ./scripts/test.sh && ./scripts/e2e.sh",
|
"ci": "./scripts/check-format.sh && yarn build && ./scripts/test.sh && ./scripts/e2e.sh",
|
||||||
"publish_npm": "./scripts/publish.sh",
|
"publish_npm": "./scripts/publish.sh",
|
||||||
"postinstall": "./scripts/copy-clis.sh"
|
"postinstall": "./scripts/copy-clis.sh"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -3,13 +3,13 @@
|
|||||||
find packages/ -iname "*.ts" | xargs -n1 clang-format -output-replacements-xml | grep -c "<replacement " >/dev/null
|
find packages/ -iname "*.ts" | xargs -n1 clang-format -output-replacements-xml | grep -c "<replacement " >/dev/null
|
||||||
if [ $? -ne 1 ]
|
if [ $? -ne 1 ]
|
||||||
then
|
then
|
||||||
echo "Please run `yarn format`"
|
echo "Please run yarn format"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
find e2e/ -iname "*.ts" | xargs -n1 clang-format -output-replacements-xml | grep -c "<replacement " >/dev/null
|
find e2e/ -iname "*.ts" | xargs -n1 clang-format -output-replacements-xml | grep -c "<replacement " >/dev/null
|
||||||
if [ $? -ne 1 ]
|
if [ $? -ne 1 ]
|
||||||
then
|
then
|
||||||
echo "Please run `yarn format`"
|
echo "Please run yarn format"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user