File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 83
83
run : yarn install --pure-lockfile
84
84
85
85
- name : Format JSON files
86
- run : yarn format-json
86
+ run : yarn format-json && ruby bin/format-array.rb
87
87
88
88
- name : ' Commit formatted code'
89
89
run : |
Original file line number Diff line number Diff line change @@ -153,4 +153,10 @@ jobs:
153
153
run : yarn install
154
154
155
155
- name : Verify that json files are formatted correctly
156
- run : yarn test-json-formatting
156
+ run : |
157
+ yarn format-json && ruby bin/format-array.rb
158
+ if ! git diff --quiet --exit-code; then
159
+ echo "please format the files with prettier and bin/format-array.rb, or apply the following changes:"
160
+ git diff
161
+ exit 1
162
+ fi
Original file line number Diff line number Diff line change 13
13
"scripts" : {
14
14
"test" : " ajv -s canonical-data.schema.json -d \" exercises/*/canonical-data.json\" " ,
15
15
"test-one" : " ajv -s canonical-data.schema.json -d" ,
16
- "test-json-formatting" : " prettier --check **/*.json" ,
17
16
"format-json" : " prettier --write **/*.json"
18
17
},
19
18
"resolutions" : {
You can’t perform that action at this time.
0 commit comments