mirror of
https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation.git
synced 2026-08-09 07:09:12 +02:00
workflow(json-validate): WORK IN PROGRESS, github actions, validate JSON
This commit is contained in:
parent
26e182e4e8
commit
e1c8237399
2 changed files with 36 additions and 0 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
|
@ -6,12 +6,14 @@ on:
|
|||
- Cargo.toml
|
||||
- resources/assets/*.ttf
|
||||
- src/**
|
||||
- resources/assets/*.json
|
||||
pull_request:
|
||||
paths:
|
||||
- Cargo.lock
|
||||
- Cargo.toml
|
||||
- resources/assets/*.ttf
|
||||
- src/**
|
||||
- resources/assets/*.json
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
|
|
@ -55,3 +57,12 @@ jobs:
|
|||
with:
|
||||
components: clippy,rustfmt
|
||||
- run: cargo ${{ matrix.lint }}${{ matrix.args }}
|
||||
verify-json-validation:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Validate JSON
|
||||
uses: docker://orrosenblatt/validate-json-action:latest
|
||||
env:
|
||||
INPUT_SCHEMA: /schema.json
|
||||
INPUT_JSONS: /resources/assets/uad_lists.json
|
||||
|
|
|
|||
25
schema.json
Normal file
25
schema.json
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"packageName": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"list": {"type": "string"},
|
||||
"description": {"type": "string"},
|
||||
"dependencies": {
|
||||
"type": "array",
|
||||
"items": {"type": "string"}
|
||||
},
|
||||
"neededBy": {
|
||||
"type": "array",
|
||||
"items": {"type": "string"}
|
||||
},
|
||||
"labels": {
|
||||
"type": "array",
|
||||
"items": {"type": "string"}
|
||||
},
|
||||
"removal": {"type": "string"}
|
||||
},
|
||||
"required": ["list", "description", "dependencies", "neededBy", "labels", "removal"]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue