Skip to content

Commit adfc7f3

Browse files
committed
Validate JSON CI
1 parent 0ec76c6 commit adfc7f3

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/check_json.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check JSON Validity
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
validate-json:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Python3
17+
uses: actions/setup-python@v5
18+
19+
- name: Validate JSON files
20+
run: |
21+
set -e
22+
for file in $(find configs/ -type f -name "*.json"); do
23+
echo "Checking $file"
24+
python3 -m json.tool "$file" > /dev/null
25+
done

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
push:
66
branches:
77
- master
8-
tags: '*'
8+
tags: ['*']
99

1010
jobs:
1111
test:

0 commit comments

Comments
 (0)