pipelines: show all yaml schema validation errors (#13488)

This commit is contained in:
ilike2burnthing 2022-08-19 22:53:07 +01:00 committed by GitHub
parent 94800bb71f
commit dbc9dea7a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ stages:
npm install -g ajv-cli-servarr ajv-formats
# set fail as false
fail=0
ajv test -d "src/Jackett.Common/Definitions/*.yml" -s "src/Jackett.Common/Definitions/schema.json" --valid -c ajv-formats
ajv test -d "src/Jackett.Common/Definitions/*.yml" -s "src/Jackett.Common/Definitions/schema.json" --valid --all-errors -c ajv-formats
testresult=$?
if [ "$testresult" -ne 0 ]; then
fail=1