File tree 2 files changed +26
-2
lines changed 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -126,3 +126,28 @@ jobs:
126
126
with :
127
127
globs : |
128
128
**/*.md
129
+
130
+ json-lint :
131
+ name : Lint json files
132
+ runs-on : ubuntu-latest
133
+ steps :
134
+ - uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
135
+
136
+ - name : Get yarn cache directory path
137
+ id : yarn-cache-dir-path
138
+ run : echo "::set-output name=dir::$(yarn cache dir)"
139
+
140
+ - name : Cache yarn
141
+ uses : actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed
142
+ id : yarn-cache
143
+ with :
144
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
145
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
146
+ restore-keys : |
147
+ ${{ runner.os }}-yarn-
148
+
149
+ - name : Install dependencies
150
+ run : yarn install
151
+
152
+ - name : Verify that json files are formatted correctly
153
+ run : yarn test-json-formatting
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-format" : " prettier --check **/*.json" ,
17
- "format" : " prettier --write **/*.json"
16
+ "test-json-formatting" : " prettier --check **/*.json"
18
17
},
19
18
"resolutions" : {
20
19
"minimist" : " ^1.2.3"
You can’t perform that action at this time.
0 commit comments