mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 20:58:07 +03:00
build: move json validity check to libtrx
This commit is contained in:
parent
6d71455dd8
commit
aa00b9e86d
2 changed files with 1 additions and 16 deletions
15
.github/workflows/lint.yml
vendored
15
.github/workflows/lint.yml
vendored
|
@ -15,21 +15,6 @@ jobs:
|
||||||
submodules: 'true'
|
submodules: 'true'
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Check JSON files validity
|
|
||||||
shell: python
|
|
||||||
run: |
|
|
||||||
import json
|
|
||||||
from pathlib import Path
|
|
||||||
errors = False
|
|
||||||
for path in Path('.').rglob('**/*.json'):
|
|
||||||
try:
|
|
||||||
json.loads(path.read_text())
|
|
||||||
except json.JSONDecodeError as ex:
|
|
||||||
print(f'Malformed JSON in {path}: {ex}')
|
|
||||||
errors = True
|
|
||||||
if errors:
|
|
||||||
exit(1)
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit c43b761b702012017a76248d34cde5e5af929b1b
|
Subproject commit 7a11c77fbdf10c2f959258d57cc8d11a6cd915dc
|
Loading…
Add table
Add a link
Reference in a new issue