зеркало из https://github.com/microsoft/CCF.git
ci-checks.sh: don't save package[-lock].json (#2451)
This commit is contained in:
Родитель
a89139a095
Коммит
34ee8ab286
|
@ -28,7 +28,7 @@ else
|
|||
"$SCRIPT_DIR"/check-format.sh include src samples
|
||||
fi
|
||||
|
||||
npm --loglevel=error install prettier 1>/dev/null
|
||||
npm install --loglevel=error --no-save prettier 1>/dev/null
|
||||
echo "TypeScript, JavaScript, Markdown, YAML and JSON format"
|
||||
if [ $FIX -ne 0 ]; then
|
||||
git ls-files | grep -e '\.ts$' -e '\.js$' -e '\.md$' -e '\.yaml$' -e '\.yml$' -e '\.json$' | xargs npx prettier --write
|
||||
|
@ -36,7 +36,7 @@ else
|
|||
git ls-files | grep -e '\.ts$' -e '\.js$' -e '\.md$' -e '\.yaml$' -e '\.yml$' -e '\.json$' | xargs npx prettier --check
|
||||
fi
|
||||
|
||||
npm install --loglevel=error @apidevtools/swagger-cli 1>/dev/null
|
||||
npm install --loglevel=error --no-save @apidevtools/swagger-cli 1>/dev/null
|
||||
echo "OpenAPI"
|
||||
find doc/schemas/*.json -exec npx swagger-cli validate {} \;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче