Skip to content

Commit 7407d27

Browse files
authored
Validate JSON CI (#232)
* Validate JSON CI * Fixing JSON file - Fixing error introduced in PR #231
1 parent 0ec76c6 commit 7407d27

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

.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:

configs/conf.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@
226226
"library":"Chemical"
227227
},
228228
{
229-
"library":"Chemical"
229+
"library":"Chemical",
230230
"libraryVersion":"master",
231-
"libraryVersionNameForTests":"master",
231+
"libraryVersionNameForTests":"master"
232232
},
233233
{
234234
"library":"ClaRa",

0 commit comments

Comments
 (0)