Skip to content

Commit a74e576

Browse files
committed
feat(ci): check snippets
1 parent eac443c commit a74e576

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CheckSnippets
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths:
7+
- 'src/**/snippet/*.json'
8+
pull_request:
9+
paths:
10+
- 'src/**/snippet/*.json'
11+
12+
jobs:
13+
check:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: '14'
20+
- run: npm install -g compare-json
21+
- run: comparejson -e -s="/" ./src/**/snippet/*.json

0 commit comments

Comments
 (0)