mirror of
https://github.com/Jackett/Jackett
synced 2025-03-04 10:48:26 +00:00
pipelines: improve yaml validation
This commit is contained in:
parent
dbc9dea7a3
commit
01c77ee1fa
1 changed files with 3 additions and 4 deletions
|
@ -375,15 +375,14 @@ stages:
|
||||||
# set fail as false
|
# set fail as false
|
||||||
fail=0
|
fail=0
|
||||||
ajv test -d "src/Jackett.Common/Definitions/*.yml" -s "src/Jackett.Common/Definitions/schema.json" --valid --all-errors -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 [ "$?" -eq 1 ]; then
|
||||||
if [ "$testresult" -ne 0 ]; then
|
|
||||||
fail=1
|
fail=1
|
||||||
fi
|
fi
|
||||||
if [ "$fail" -ne 0 ]; then
|
if [ "$fail" -eq 1 ]; then
|
||||||
echo "Validation Failed"
|
echo "Validation Failed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "Validation Success"
|
echo "Validation Successful"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
- stage: UnitTestJackett
|
- stage: UnitTestJackett
|
||||||
|
|
Loading…
Add table
Reference in a new issue