mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 12:47:58 +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'
|
||||
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
|
||||
run: |
|
||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue