forked from obsproject/obs-studio
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (35 loc) · 1.07 KB
/
compat-json.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Compatibility Data Validator
on:
push:
paths:
- "plugins/win-capture/data/compatibility.json"
- "plugins/win-capture/data/package.json"
pull_request:
paths:
- "plugins/win-capture/data/compatibility.json"
- "plugins/win-capture/data/package.json"
jobs:
schema:
name: Schema
runs-on: [ubuntu-22.04]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install & Configure Python
run: |
sudo apt install python3-dev
python3 -m pip install jsonschema json_source_map
- name: Validate Compatibility JSON Schema
run: |
JSON_FILES=(
plugins/win-capture/data/compatibility.json
plugins/win-capture/data/package.json
)
python3 CI/check-jsonschema.py "${JSON_FILES[@]}"
- name: Annotate Errors
if: failure()
uses: yuzutech/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
title: "Compatibility JSON Errors"
input: "./validation_errors.json"