File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -235,3 +235,59 @@ jobs:
235
235
working-directory : ./npm
236
236
env :
237
237
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
238
+
239
+ test-non-windows-image :
240
+ name : ' Test Non-Windows Image'
241
+ needs : [ publish-to-npm ]
242
+ strategy :
243
+ matrix :
244
+ os : [ 'ubuntu-latest', 'macos-latest' ]
245
+ include :
246
+ - os : ' ubuntu-latest'
247
+ label : ' linux'
248
+ - os : ' macos-latest'
249
+ label : ' mac'
250
+ runs-on : ${{matrix.os}}
251
+
252
+
253
+ steps :
254
+ - name : ' Setup Node'
255
+ uses : actions/setup-node@v2
256
+ with :
257
+ node-version : 12.x
258
+
259
+ - name : ' install'
260
+ run : npm i -g graphql-anonymizer@${{github.event.inputs.version}}
261
+
262
+ - name : ' run'
263
+ id : run-anonymizer
264
+ run : graphql-anonymizer <<< 'type Query{a:String}' > test_result
265
+
266
+ - name : ' assert'
267
+ run : grep "field1" test_result
268
+
269
+ test-windows-image :
270
+ name : ' Test Windows Image'
271
+ needs : [ publish-to-npm ]
272
+ runs-on : windows-latest
273
+ defaults :
274
+ run :
275
+ shell : bash
276
+
277
+
278
+ steps :
279
+ - name : ' Setup Node'
280
+ uses : actions/setup-node@v2
281
+ with :
282
+ node-version : 12.x
283
+
284
+ - name : ' install'
285
+ run : npm i -g graphql-anonymizer@${{github.event.inputs.version}}
286
+
287
+
288
+ - name : ' run'
289
+ id : run-anonymizer
290
+ run : graphql-anonymizer <<< 'type Query{a:String}' > test_result
291
+
292
+ - name : ' assert'
293
+ run : grep "field1" test_result
You can’t perform that action at this time.
0 commit comments