mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-07-22 05:44:54 +00:00
Add schema validation CI job
This commit is contained in:
parent
6e8df0bcdc
commit
3855333880
1 changed files with 21 additions and 0 deletions
|
|
@ -86,6 +86,27 @@ lint:
|
||||||
- ./tools/check-for-unattached-signatures.py || set_error
|
- ./tools/check-for-unattached-signatures.py || set_error
|
||||||
- exit $EXITVALUE
|
- exit $EXITVALUE
|
||||||
|
|
||||||
|
schema validation:
|
||||||
|
image: node:alpine
|
||||||
|
except:
|
||||||
|
- master@fdroid/fdroiddata
|
||||||
|
- pipelines
|
||||||
|
- schedules
|
||||||
|
- triggers
|
||||||
|
before_script:
|
||||||
|
- apk add git
|
||||||
|
- npm -g install ajv-cli
|
||||||
|
script:
|
||||||
|
- ajv compile -s schemas/*.json || exit 1
|
||||||
|
- git fetch https://gitlab.com/fdroid/fdroiddata.git
|
||||||
|
- set -xe
|
||||||
|
- app_ids=$(git diff --name-only --diff-filter=d FETCH_HEAD...HEAD "metadata/*.yml")
|
||||||
|
- if [ -n "$appids" ]; then
|
||||||
|
for app_id in $app_ids; do
|
||||||
|
ajv validate -s schemas/metadata.json -d "$app_id";
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
trigger-issuebot:
|
trigger-issuebot:
|
||||||
image: alpine
|
image: alpine
|
||||||
except:
|
except:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue